File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes cxf interceptor question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "cxf interceptor question" Watch "cxf interceptor question" New topic

cxf interceptor question

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 641

Is there a way to tell cxf to stop only user defined interceptors when is invoked?
I am in situation where it kills even the default interceptors like JAXRSOutInterceptor.

to give some background, I have to kill interceptors if one of the interceptor throws fault but still write something to response.
currently I am writing using ServletOutputStream taking from

but its not a good way as I cannot handle the ouput type (either xml or json).

Any Pointers?

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 641
finally with lot of debugging thru cxf code , found following way to do this....

This works only if you invoke the method programatically from Interceptor that will execute this code, do NOT throw fault from interceptor as it will always respond back with 500 error message.

hope it helps someone ...
I agree. Here's the link:
subject: cxf interceptor question
It's not a secret anymore!