Be carefull, the MessageContext is an interface in JAXP-RPC standard API, not a class, and i don't know any class that provides a static access to the current call context. The class you mention is probably an axis specific class, and you may lose portability...
>>> -----Original Message----- >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>> Sent: Tuesday, May 31, 2005 4:08 PM >>> To: [email protected] >>> Subject: RE: Question about handlers >>> >>> >>> You are right on target, from your XXXBindingImpl class you can >>> access the >>> current request's MessageContext by calling the static method >>> MessageContext.getCurrentContext(). From there all information that the >>> handlers have added into the MessageContext will be available. >>> >>> Underneath the hood, MessageContext.getCurrentContext() refererences a >>> ThreadLocal instance of MessageContext that is maintained by >>> the AxisEngine. >>> >>> Hope this helps, >>> Al >>> >>> Quoting Mark Ford <[EMAIL PROTECTED]>: >>> >>> > You can pass information between handlers in the chain using the >>> > MessageContext, but I don't see how you could pass >>> information directly to >>> > the service endpoint class. A workaround would be to install a custom >>> > handler in the chain and have this handler set the >>> credentials or other >>> > information on a static class with a ThreadLocal that you >>> could then read >>> > from your endpoint. >>> > >>> > -----Original Message----- >>> > From: Garzon Maldonado, Jesus Javier [mailto:[EMAIL PROTECTED] >>> > Sent: Tuesday, May 31, 2005 6:14 AM >>> > To: [email protected] >>> > Subject: Question about handlers >>> > >>> > Hello all, >>> > >>> > Is there any way to pass data from handlers to service >>> implementations?, >>> > (that is, XXXBindingImpl classes) >>> > >>> > For example, a handler perform user authentication and service >>> > implementation needs that user to login a database. >>> > >>> > Thanks. >>> > >>> > Javi Garz�n >>> > >>> > >>> >>>
