Hi, What happened if an application exception is thrown in a message driven bean method (other than the onMessage)? Thank you.
posted 14 years ago
It doesn't matter if the actual source is the onMessage() or some other method -- the invocation has in any case come through the onMessage() method and is subject to the rules stated in the EJB specification. And... because the onMessage() method is not allowed to declare any application exceptions to be thrown, it must swallow any application exceptions thrown by helper methods.