I'm using JBoss SOA-P 5.2, which should be equivalent to JBoss ESB 4.10. And our ESB service uses a Http Gateway, which listens request from a web site.
The happy-path is all good: we can return a JSON response to web site application according to the HttpRequest. The problem comes from the exceptional path, where java code throws some exception from the action pipeline. Is there a way that we can catch exception generated in the action pipeline and customized the returned message to web application?
Thanks a lot!
It's suggested by RedHat that we can use RestEasy to accept HTTP requests and invoice ESB service through ServiceInvoker.