On Tuesday, August 30, 2011 10:48:42 AM santoshk wrote:
> Hi, I have a web service that is exposed via http as well as jms. What would
> be the best way to identify the transport mechanism used so I can different
> action based on it, e.g. error handling?

If you inject the WebServiceContext (or call 
PhaseInterceptorChain.getCurrentMessage()), you can likely query the message 
for various things that will help you determine this.   For example, you could 
grab the HttpServletRequest from it.  If it's there, you have http.   You can 
check the PROTOCOL_HEADERS for various protocol specific things.  etc...

Dan


> Santosh
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/identifying-client-type-tp4750991p4750991.h
> tml Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to