Thilina,
I've tried it even inside the service class, but it's always null :(.
I guess the value is not null only when a request is received, isn't it?
Michele
On Wed, 2007-02-21 at 21:11 +0600, Thilina Gunarathne wrote:
> > hmmm, this does not work.
> It uses thread local storage and will work only if used with the
> thread which invokes an Axis2 service.. In other words, it'll work
> only inside the service.
> >
> > The result of MessageContext.getCurrentMessageContext() is null if
> > called this way
> >
> > public class Test {
> >
> > public Test() {
> > MessageContext ctx = MessageContext.getCurrentMessageContext();
> > // ctx is null
> > }
> > }
> >
> >
> > Michele
> >
> >
> > ---------------------------------------------------------------------
> > 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]