Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.404 :

Posted: Thu May 17, 2012 4:09 pm
by prakashyaji
I suddenly got a doubt and realized something. In the explanation of option 3:
Regardless of what kind of exception in thrown by the bean method, the client always gets ExecutionException. Note that this is different from what happens for regular (non-asynchronous) method - if it throws an application exception, the client receives the same application exception and if it throws a system exception, the client gets EJBException.
I was about to suggest that in case of transactional conditions "TransactionRolledbackException" could be thrown. But while writing the comment here, I realized that client transaction is never shared with Asynchronous methods. So, Asynchronous methods would never throw "TransactionRolledbackException".

I hope this helps!

Regards,
Prakash Yaji