axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Da Cruz Pinto, Juan M" <>
Subject RE: [Axis2] MessageContext properties lifetime
Date Fri, 21 Sep 2007 12:48:34 GMT

Thanks for your answer! And sorry for explaining things wrong:). I'm not
using the "getCurrentContext" method, but instead I'm accessing the
MessageContext parameter received in the "invoke" method of the handler.
That link was what I needed!

Thanks again,

-----Original Message-----
From: Deepal Jayasinghe [] 
Sent: Friday, September 21, 2007 01:21
Subject: Re: [Axis2] MessageContext properties lifetime

Da Cruz Pinto, Juan M wrote:
> Hi all,
> I'm trying to build an Axis2 module. In the server side, when I
> process an incoming message I need to store some information that will
> be used later during response processing.
> I've tried using setProperty(...) from MessageContext, but when I do
> so, the property is not present when processing the response
> (MessageContext lifetime is only request or response? But not both?).
> I've also tried setting the property in the OperationContext I get
> from the current MessageContext, but when the module is active in the
> server side, OperationContext and all other *Context instances I get
> from the current MessageContext are null... don't know what else to
Well getCurrentContext only work inside the service impl class , since
you have access to the message context inside your handler you do not
need to use that method. But for accessing req property in the response
please refer to


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message