Could you not use ( or in anothe way how is this used) when using the @Resource 
annotation like in the example below:

import java.rmi.RemoteException;
import java.util.Map;
import javax.annotation.Resource;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.WebServiceContext;

@WebService(name="TestWebService", targetNamespace="http://www.co 
mpany.com/department/testwebservice/", serviceName="TestWebService")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class TestWebService {

        @Resource 
        WebServiceContext wsContext;

        
  @WebMethod
  public String hello(String name) throws RemoteException {
        MessageContext context = wsContext.getMessageContext();
        Map requestHeaders = (Map) 
context.get(MessageContext.HTTP_REQUEST_HEADERS) ;
                return "Hello "+name+"!";
  }
}

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965001#3965001

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965001
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to