I have a JBOSS ESB that uses a standard out of the box EJBProcessor action. How do I get hold of an exception, if the exception be thrown in the method call that was run in the EJB?
Any advice would be helpful.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can subclass
EJBProcessorand override the process method like this:You will more than likely catch an instance of
ActionProcessingException, and you can look at the cause to see the exception in yourEJB.Your action configuration in your
jboss-esb.xmlwill remain exactly the same, except you will substitute the name of your subclass fororg.jboss.soa.esb.actions.EJBProcessor.