You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by William Blackburn <WB...@GoldenGate.com> on 2002/12/20 21:18:25 UTC

ServiceLifecycle and ServletEndpointContext

Hi all, major newbie here, but getting very excited about Axis'
capabilitites.

I've been trying to get my Service to access the underlying servlet context
in order to make use of some shared resources stored there. I've implemented
ServiceLifecycle in my SoapBindingImpl class and provided an implementation
for init() in order to get the servlet context with the
ServletEndpointContext. Unfortunately init is never called.

It IS called if I tweak around with the Axis generated SoapBindingSkeleton
class -- unfortunely tweaking this class so that it implements Lifecycle,
then getting it to pass the retrieved context to the SoapBindingImpl made
the service work, but trashed the autogeneration of WSDL by Axis.

I've read every thread on this in the mailing list archove for the past
three months (and there were several) but nowhere was the diffinitive answer
of where and how to implement ServiceLifecycle properly within the
Axis-generated framework. If any of you have figured this out, I'd be most
appreciative of your help.

Thanks,