You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Yves Langisch <li...@langisch.ch> on 2005/10/25 08:57:58 UTC

[Axis2] How to get current MessageContext in skeleton class

All,

I'm looking for a way to get the current MessageContext in the skeleton
class? In Axis2 this could be done with
AxisEngine.getCurrentMessageContext().

Thanks
Yves




Re: [Axis2] How to get current MessageContext in skeleton class

Posted by Deepal Jayasinghe <de...@opensource.lk>.
hi

You can do that , but you need to do small modification add the following 
method to the skeleton class , then that method will be called by 
MessageReciver (called dependency injection)


class MySkel {
 private MessageContext ctx;
public void init(MessageContext ctx){
   this.ctx = ctx;
}

/// rest of you code

}

Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "Yves Langisch" <li...@langisch.ch>
To: <ax...@ws.apache.org>
Sent: Tuesday, October 25, 2005 12:57 PM
Subject: [Axis2] How to get current MessageContext in skeleton class


> All,
>
> I'm looking for a way to get the current MessageContext in the skeleton
> class? In Axis2 this could be done with
> AxisEngine.getCurrentMessageContext().
>
> Thanks
> Yves
>
>
>
>