Yes, this is a problem. Axis v1.0 had the following on its MessageContext:
static ThreadLocal currentThreadMessageContext = new ThreadLocal();
So in order to implement the solution, we would need to add this capability to the Axis2 MessageContext
and set the currentThreadMessageContext in the transport utilities when the Message is received.
Dims/Sanjiva,
Would you allow us to change MessageContext and the transport utils to set the MessageContext on TLS ?
>FWIW, on the 1.1 branch,
>MessageContext.setCurrentMessageContext(msgContext); appears to only
>be called from AbstractMessageReceiver which is called after the
>handler chain.
>David
On 30/10/06, R J Scheuerle Jr <[EMAIL PROTECTED]> wrote:
>
>
> Okay, I see your point here.
>
> So I believe your suggestion is for the user to provide and configure a
> javax.xml.stream.XMLInputFactory (outside of Axis2).
> The XMLStreamReader provided by this XMLInputFactory would create and could
> act as a Filter of an actual (woodstox) XMLStreamReader.
> The user-provided XMLStreamReader could implement BuilderAwareReader,
> giving it access to OM Elements.
> The user-provided XMLStreamReader could obtain the Axis2 MessageContext
> from thread local storage.
>
> We will investigate this solution.
>
> Followup Question:
> If we decide that we can do this outside of Axis2, could we commit a test
> to Axis 2 to ensure:
> a) The BuilderAwareReader works
> b) The Axis 2 MessageContext remains available on thread local storage.
>
> The test could be useful to other Axis 2 users that have the same concerns.
>
> On 10/26/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:
> > On Thu, 2006-10-26 at 20:50 -0400, Davanum Srinivas wrote:
> > > I completely agree that this is mixing layers of processing and the
> > > stax filter should not have access to it. Also, at the risk of stating
> > > the obvious...We don't need to pass in the MessageContext at all. In
> > > current SVN, you can get the message context using the thread local.
> >
> > Except that while the StAX code is invoked there may not be not be one
> > around at all.
> >
> > Sanjiva.
> >
> >
Rich Scheuerle
IBM Web Services
Apache Axis2 ([EMAIL PROTECTED])
512-838-5115 (IBM TL 678-5115)
- Re: Request for XML Filter (AXIS2-1085) R J Scheuerle Jr
- Re: Request for XML Filter (AXIS2-1085) Davanum Srinivas
- Re: Request for XML Filter (AXIS2-1085) Eran Chinthaka
- Re: Request for XML Filter (AXIS2-1085) Sanjiva Weerawarana
- Re: Request for XML Filter (AXIS2-1085) Sanjiva Weerawarana
- Re: Request for XML Filter (AXIS2-1085) Sanjiva Weerawarana
- Re: Request for XML Filter (AXIS2-1085) Takahide Nogayama
- Re: Request for XML Filter (AXIS2-1085) R J Scheuerle Jr
- Re: Request for XML Filter (AXIS2-108... Takahide Nogayama
- Re: Request for XML Filter (AXIS... Takahide Nogayama
- Re: Request for XML Filter (AXIS2-108... Sanjiva Weerawarana
