[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2074) Resource injection in jaxws endpoints and handlers

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Tue Feb 10 06:39:44 EST 2009


     [ https://jira.jboss.org/jira/browse/JBWS-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano updated JBWS-2074:
----------------------------------

      Component/s: jbossws-cxf
                   jbossws-metro
    Fix Version/s:  jbossws-metro-3.1.1
                    jbossws-cxf-3.1.1


> Resource injection in jaxws endpoints and handlers
> --------------------------------------------------
>
>                 Key: JBWS-2074
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2074
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf, jbossws-metro, jbossws-native
>    Affects Versions:  jbossws-native-2.0.3
>            Reporter: Richard Opalka
>            Assignee: Richard Opalka
>            Priority: Critical
>             Fix For:  jbossws-native-3.1.1,  jbossws-metro-3.1.1,  jbossws-cxf-3.1.1
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list