I'm having problem with getting ServletEndpointContext.
I implement ServiceLifecycle in my WebService and try to get ServletEndpointContext in implemented init() method but that method is never called.
Using JBoss 4.0.4 and JSR-181 Webservice..
ServiceLifecycle is realy a JAXRPC construct, wheras JSR181 is trageted for JAXWS. What you ultimately want is
@Resource WebServiceContext wsctx;