RE: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-23 Thread Etches, Adam (GE Infra, Energy)
the client to supply a session id as a param. Adam _ From: Afkham Azeez [mailto:[EMAIL PROTECTED] Sent: 22 January 2008 18:19 To: axis-user@ws.apache.org Subject: Re: getCurrentMessageContext() returns null when invoked from an EJB? The problem is that the current MessageContext is store

RE: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-22 Thread Etches, Adam (GE Infra, Energy)
I'm invoking a web service which implementation is an EJB. _ From: Afkham Azeez [mailto:[EMAIL PROTECTED] Sent: 22 January 2008 05:51 To: axis-user@ws.apache.org Subject: Re: getCurrentMessageContext() returns null when invoked from an EJB? Are you trying to invoke a Web service from

RE: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-22 Thread Etches, Adam (GE Infra, Energy)
. Adam _ From: Andreas Veithen [mailto:[EMAIL PROTECTED] Sent: 21 January 2008 21:49 To: axis-user@ws.apache.org Subject: Re: getCurrentMessageContext() returns null when invoked from an EJB? Hi, MessageContext stores the current message context in a ThreadLocal. To be able

Re: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-22 Thread Afkham Azeez
-- *From:* Andreas Veithen [mailto:[EMAIL PROTECTED] *Sent:* 21 January 2008 21:49 *To:* axis-user@ws.apache.org *Subject:* Re: getCurrentMessageContext() returns null when invoked from an EJB? Hi, MessageContext stores the current message context

Re: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Thilina Gunarathne
Hi, What do you mean by invoking from an EJB.. Are you invoking the service method directly without going through Axis2 (not doing an service invocation). If that's the case it should return a NULL as there does not exist an Axis2 created MessageContext.. ~Thilina On Jan 21, 2008 9:39 AM,

Re: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Afkham Azeez
Did you take a look at http://ws.apache.org/axis2/1_2/ejb-provider.html ? Azeez On Jan 21, 2008 8:09 PM, Etches, Adam (GE Infra, Energy) [EMAIL PROTECTED] wrote: Hi all first time posting… I have been looking at implementing web services in axis2-1.3 with EJB 2.1. I need to get a handle

RE: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Etches, Adam (GE Infra, Energy)
The service is called from Axis2 processing the request so I would expect the message Context to be populated. Adam _ From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: 21 January 2008 19:18 To: axis-user@ws.apache.org Subject: Re: getCurrentMessageContext() returns null when

RE: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Etches, Adam (GE Infra, Energy)
A took a look at the document and it doesn't reference getCurrentMessageContext() so no help there. Adam _ From: Afkham Azeez [mailto:[EMAIL PROTECTED] Sent: 21 January 2008 21:10 To: axis-user@ws.apache.org Subject: Re: getCurrentMessageContext() returns null when invoked from an EJB

Re: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Andreas Veithen
Hi, MessageContext stores the current message context in a ThreadLocal. To be able to retrieve it, two conditions must be met: 1) The Axis JARs must be loaded from the same class loader. 2) MessageContext#getCurrentMessageContext must be called from within the thread that received the

Re: getCurrentMessageContext() returns null when invoked from an EJB?

2008-01-21 Thread Afkham Azeez
Are you trying to invoke a Web service from within an EJB or are you trying to invoke an EJB from within a Web service? Azeez On Jan 21, 2008 8:09 PM, Etches, Adam (GE Infra, Energy) [EMAIL PROTECTED] wrote: Hi all first time posting… I have been looking at implementing web services in