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 [EMAIL PROTECTED] http://www.retep.org/ http://retep.net/ Tel: +44 (0) 1622 749439 Fax: +44 (0) 8701 361620 Mobile: +44 (0) 7903 155887 IM-MSN: [EMAIL PROTECTED] IM-AOL/ICQ: retepworld > > Jim Harris <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > > Sent: 16 August 2003 08:06 > > > To: [EMAIL PROTECTED] > > > 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 > > > > > > > >