On 31/05/12 09:18, yann777 wrote:
Hello,

Thx for the answer, but what I would like to know is how to get the endpoint
instance.
If I have a servlet, is it possible in my service class to obtain the
endpoint instance of this service class?
Knowing that I have launched my endpoint from web.xml, how do I retrieve the
endpoint instance programmatically?


You can do something like this:

Endpoint e = message.getExchange().get(Endpoint.class);

and get the list of CXF interceptors from this endpoint but I guess you will need to make sure that JAXRSInInterceptor and JAXRSOutInterceptor are not propagated to WebClient.

Cheers, Sergey

Regards

Yann


--
View this message in context: 
http://cxf.547215.n5.nabble.com/Retrieving-interceptor-list-from-an-endpoint-instance-tp5708840p5708878.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to