cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bozhong Lin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-442) Support the injection of javax.xml.ws.WebServiceContext
Date Tue, 13 Mar 2007 03:48:09 GMT

     [ https://issues.apache.org/jira/browse/CXF-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bozhong Lin updated CXF-442:
----------------------------

        Fix Version/s: 2.0-RC
    Affects Version/s: 2.0-RC

> Support the injection of javax.xml.ws.WebServiceContext
> -------------------------------------------------------
>
>                 Key: CXF-442
>                 URL: https://issues.apache.org/jira/browse/CXF-442
>             Project: CXF
>          Issue Type: Sub-task
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>            Reporter: Jervis Liu
>             Fix For: 2.0-RC
>
>
> The injection of javax.xml.ws.WebServiceContext. JSR-109, section 6.2.4:
> A JAX-WS based container must carry out any injections (if any) requested by the handler,
typically via the
> @Resource annotation (see section 2.2 of JSR-250 Common Annotations for Java Platform
specification). A
> JAX-WS handler should use the javax.xml.ws.WebServiceContext, which is an injectable
resource,
> to access message context and security information relative to the request being served.
A unique Handler
> instance must be provided for each Port component declared in the deployment descriptor
or annotated by
> javax.jws.WebService or javax.xml.ws.WebServiceProvider annotations.
> CXF does support the injection of WebServiceContext in endpoint but not in handlers yet.
I presume a code snippet that has the injection of  WebServiceContext would look like below:
> public class MyHandler implements SOAPHandler<SOAPMessageContext> {
> ....
> @Resource
> WebServiceContext context
> ...
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message