Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2074

Resource injection in jaxws endpoints and handlers

    XMLWordPrintable

Details

    Description

      I tried to use resource injection in WS Handler as described in JAX-WS spec which is a MUST feature.

      I tested it in both Sun impl and Jbosss JAX-WS 2.0.x with Jboss 4.2.2. It is working well in Sun impl but not working in JBoss WS.

      here is the simple test. I am using web war as deployement, inside web.xml, I have the following:

      <env-entry>
      <env-entry-name>customFormat</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>Path1: $PATH_INFO, Outbound: $MESSAGE_OUTBOUND_PROPERTY - $NODE</env-entry-value>
      <injection-target>
      <injection-target-class>testjaxws.handler.DefaultCustomLoggingWrapperHandler</injection-target-class>
      <injection-target-name>customFormat</injection-target-name>
      </injection-target>
      </env-entry>

      inside DefaultCustomLoggingWrapperHandler class, I have:

      @Resource
      private String customFormat = null;

      defined.

      It is never gets injected with this value no matter what I tried.

      Attachments

        Issue Links

          Activity

            People

              ropalka Richard Opalka
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified