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 try.
>
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

http://wso2.org/library/2084

Thanks
Deepal


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to