axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Mount <pe...@retep.org.uk>
Subject Re: RE: Axis MessageContext to the WebService
Date Mon, 18 Aug 2003 15:01:42 GMT

On Mon, 18 Aug 2003, Jakob Skovenborg wrote:

> Hej Jim
> How does that work with concurrent WebServices? Wont you get a
> MessageContext belongs to another session.
> /Jakob

It uses ThreadLocal, so it returns the current MessageContext for that
Thread.

Peter

-- 
Peter Mount
peter@retep.org.uk
http://www.retep.org/
http://retep.net/
   Tel: +44 (0) 1622 749439
   Fax: +44 (0) 8701 361620
Mobile: +44 (0) 7903 155887
    IM-MSN: retep207@hotmail.com
IM-AOL/ICQ: retepworld

>
> Jim Harris <JimHarris@blueyonder.co.uk> wrote:
> > Jakob
> >
> > Usually the MessageContext is available to a Web service
> > invoked by axis
> > through the static method of the MessageContext class as
> > follows:
> >
> > MessageContext msgContext =
> > MessageContext.getCurrentContext();
> >
> > I think that is the one...
> >
> > HTH
> > Jim
> >
> > > -----Original Message-----
> > > From: Jakob Skovenborg [mailto:js26@mail.tele.dk]
> > > Sent: 16 August 2003 08:06
> > > To: axis-user@ws.apache.org
> > > Subject: Axis MessageContext to the WebService
> > >
> > >
> > > How do I pass the Axis MessageContext from the Pivot
> > Handler to
> > > the WebService. My Webservice has to get access to a
> > backend
> > > service which need the UserID from MessageContext.
> > > /Jakob
> > >
> >
> >
>


Mime
View raw message