In my JAX WS webservice "WebServiceContext" variable is not getting populated. This is what I have done
When I call this service method, the context is displayed as null in the server logs.
Can someone please let me know how to resolve this?
Joined: Oct 04, 2006
Are those all annotations you have on service endpoint implementation class?
If your service is not running on the JavaEE platform, then this annotation is required, in order for resource injection to be performed.
If you are running on the JavaEE platform, then the rules in JSR-244 apply. See http://jcp.org/en/jsr/detail?id=244 Additional reference: JAX-WS 2.1 Specification, section 5.3