javaee / metro-wsit

https://javaee.github.io/metro-wsit/
Other
9 stars 24 forks source link

Provide some means to make the ServletContext accessible in general, i.e. when NOT currently executing a Web Service request #1515

Open glassfishrobot opened 13 years ago

glassfishrobot commented 13 years ago

Actually the ServletContext of a deployed WS is accessible in a WS by means of the inejected @Resource. Injection of the @Resource WebServiceContext works fine, but accessing the ServletContext from there only works in the WS methods but not in the startup / init phase.

Seealso in discussion board: http://www.java.net/forum/topic/glassfish/metro-and-jaxb/access-servletcontext-jax-ws-web-service-0

glassfishrobot commented 13 years ago

Reported by markus_franke

glassfishrobot commented 13 years ago

@mpotociar said: Reassigning to Jitu.

glassfishrobot commented 12 years ago

ernestojpg said: It would be great to be able to access the ServletContext from, for instance, the @PostConstruct method.

Link for the discussion: http://www.java.net/node/673651

glassfishrobot commented 13 years ago

Was assigned to jitu

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA WSIT-1515