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

Moderator: admin

Post Reply
prakashyaji
Posts: 25
Joined: Sun May 13, 2012 1:39 am
Contact:

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests