0 Replies Latest reply on Jun 12, 2012 8:30 AM by Surya Kant Tyagi

    @Resource WebServiceContext is null

    Surya Kant Tyagi Newbie

      This code @Resource private WebServiceContext context; within a web service should get initilized by the container. But I am getting context null every time. I tried to allocate context using setter resource annotation, then context get initilized to WebServiceContextImpl with localCtx=null.

      My question is why localCtx is coming null every time. Secondly, what is the exact implementation class of the WebServiceContext resource? Is it WebServiceContextImpl or ThreadLocalAwareWebServiceContext.class and how it will be get correctly initilized in jbossAs7.1.1 Please provide some solution to this problem.

      Thanks in advance.