Hi Chad ,
As I know PasswordCallback class is called inside the DoAllreciver
handler in the security module and that handler has access to the
message context , so it should do is provide a way to access the
MessageContext inside the PasswordCallback.

Thanks
Deepal
> 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]
> <mailto:[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]
>     <mailto:[EMAIL PROTECTED]>]
>     > Sent: Sunday, June 10, 2007 12:37 AM
>     > To: [email protected] <mailto:[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]>
>     <mailto: [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]
>     <mailto:[EMAIL PROTECTED]>
>     For additional commands, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to