Hi Daniel I wanted to access the servlet context as mechanism for inter-servlet communication (get/set of parameters) but I've already solved this problem in an other way.
Thanks anyway Francesco -----Messaggio originale----- Da: Daniel Jemiolo [mailto:[EMAIL PROTECTED] Inviato: venerdì 15 settembre 2006 21.35 A: [email protected] Oggetto: Re: ServletContext What do you need to access from the servlet context? The SOAP headers and anything from the Axis2 operation context are available, but you'll have to cast to an Axis2-specific API for the latter (this stuff is in the /site/docs for the release, I promise ;) ). To get the WS-A headers from your capability, you can do: MessageHeaders wsa = getEnvironment().getAddressingContext(); EndpointReference epr = wsa.getToAddress(); String messageID = wsa.getMessageID(); // etc. this code just pulls the data out of the Axis2 addressing implementation. If you want other Axis2/servlet context data, you need to cast to the Axis2 environment like this: AxisEnvironment axis2Env = (AxisEnvironment)getEnvironment(); OperationContext ctx = axis2Env.getInputMessageContext(); again, let me know what data you're trying to access and we can help you find it. Dan "Scandelli Francesco" <[EMAIL PROTECTED]> wrote on 09/15/2006 03:35:49 AM: > Hi, > > > > I would need to access the ServletContext from within a capability > implementation class of Muse 2.0 (a class implementing > AbstractCapability). Apparently there's no any static way to access it > through Axis2 classes, can anyone help me? > > > > Thanks > > Francesco > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
