MessageBodyWriterInterceptor not getting invoked when an ExceptionMapper is executed

Solution Verified - Updated -

Issue

  • I am using a RESTEasy service and wanted to capture both raw input and output from and to the service. I have a MessageBodyWriterInterceptor that I'd like to be invoked for every response, but I've discovered that if one of my ExceptionMappers creates a response, the MessageBodyWriterInterceptor is not invoked. How can I make the MessageBodyWriterInterceptors be invoked in this scenario?

Environment

  • JBoss Enterprise SOA Platform 5.x
  • JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In