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 Stephen James <St...@genband.com> on 2007/08/30 14:22:05 UTC

message context

I was looking at this article:
 
http://www.developer.com/open/article.php/10930_3589126_3
 
about how to get the message context passed in the init method.
 
Is it incorrect to use this in your service logic?
 
 

Stephen James
Senior S/W Engineer, Applications Business Unit

GENBAND Inc.
3701 W. Plano Pkwy., Suite 200
Plano, TX 75075 USA
office            +1-972-521-5858
stephen.james@genband.com
 
 <http://www.genband.com/> 
 

 

Re: message context

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Well , now you can get the message context inside the your method using
the following code,

MessageContext msgCtx = MessageContext.getCurrentMessageContext();

So if you want to access the message context inside the method "foo"
then do it as follows;

public void foo(){
MessageContext msgCtx = MessageContext.getCurrentMessageContext();
}

Thanks
Deepal

Stephen James wrote:
> I was looking at this article:
>  
> http://www.developer.com/open/article.php/10930_3589126_3
>  
> about how to get the message context passed in the init method.
>  
> Is it incorrect to use this in your service logic?
>  
>  
>
> *Stephen James*
> Senior S/W Engineer, Applications Business Unit
>
> *GENBAND Inc.*
> 3701 W. Plano Pkwy., Suite 200
> Plano, TX 75075 USA
> office            +1-972-521-5858
> stephen.james@genband.com <ma...@genband.com>
>  
> <http://www.genband.com/>
>  
>
>  

-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org