I'm trying get the jax-ws javax.xml.ws.WebServiceContext
. I'm able to do it in my Web service this way:
@WebService
public class Service extends BaseService {
@Resource
WebServiceContext wsContext;
@WebMethod
public responseExample example(....) {...}
}
I want to get this bean any where else in my code. Would it work if I use spring?
After a long time trying different ways, this is how I managed to do it like this: