With Axis1 this was possible by calling MessageContext.getCurrentContext(); This doesn't appear to be possible in Axis2, is that right?
Chad On 6/11/07, Chad DeBauch <[EMAIL PROTECTED]> wrote:
I also have the need to get access to the MessageContext within the PasswordCallback class. Any ideas on how to do this would be appreciated. Thanks, Chad On 6/11/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > > Hi Ruchith > > I think you need to help in this situation since it has something to do > with security. > > Thanks > Deepal > > Wang, Hailong (NIH/CIT) [C] wrote: > > I actually want to access MessageContext in PasswordCallback function. > > > Can I do that? If yes, could you tell me how. Thanks. > > > > > > Hailong > > > > -----Original Message----- > > From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] ] > > Sent: Sunday, June 10, 2007 12:37 AM > > To: [email protected] > > Subject: Re: setOperationContext does not get a chance to run > > > > Hi Wang, > > setOperationContext method had threading issue so we removed that and > > introduced new way of accessing the context inside the service impl > > class. You can get the current message context and from that you can > get > > any context you want. > > > > public int add(int a , int b){ > > MessageContext msgCtx = MessageContext.getCurrentMessageContext(); > > ..... > > } > > > >> Hi, > >> > >> > >> > >> My setOperationContext function does not get a chance to run. Is > there > >> anyone ever has same problem? Thanks. > >> > >> > >> > >> **Hailong Wang** > >> > >> National Database for Autism Research(NDAR) > >> > >> NIH/CIT/DECA (MOM CONTRACTOR) > >> > >> 9000 Rockville Pike, Bld 12A/Room 2027 > >> > >> Bethesda, MD 20892 > >> > >> Phone: 301-402-3045 > >> > >> Fax: 301-480-0028 > >> > >> Email: [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]> > >> > >> URL: http://ndar.nih.gov > >> > >> > >> > >> > > > > > > -- > Thanks, > Deepal > ................................................................ > "The highest tower is built one brick at a time" > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
