axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ephemeris Lappis" <ephemeris.lap...@gmail.com>
Subject RE: Question about handlers
Date Tue, 31 May 2005 18:17:40 GMT
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: aveitas@allesta.com [mailto:aveitas@allesta.com]
>>> Sent: Tuesday, May 31, 2005 4:08 PM
>>> To: axis-user@ws.apache.org
>>> 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 <mark.ford@active-endpoints.com>:
>>>
>>> > 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:jgarzon@indra.es]
>>> > Sent: Tuesday, May 31, 2005 6:14 AM
>>> > To: axis-user@ws.apache.org
>>> > 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
>>> >
>>> >
>>>
>>>


Mime
View raw message