cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <>
Subject Re: identifying client type
Date Fri, 02 Sep 2011 16:59:55 GMT
On Friday, September 02, 2011 9:04:30 AM Santosh Kulkarni wrote:
> I'm sorry I am not clear on where do I inject the WebServiceContext?, my web
> service impl class or somewhere else?

If you do:
WebServiceContext context;

in your impl, it should get injected.

That said, it's likely easier to just call 
PhaseInterceptorChain.getCurrentMessage() to get the CXF message out of there.   
There is more information in there that you can use.  For example:

message.getExchange().getDestination() instanceof JMSDestination 

would immediately tell you if it's JMS of:

message.getExchange().getDestination() instanceof AbstractHTTPDestination

if its HTTP.


> Santosh
> --
> View this message in context:
> tml Sent from the cxf-user mailing list archive at
Daniel Kulp
Talend -

View raw message