I would like to ask about one explanation to this question :
A client of a session bean calls a method on the bean and the method throws a system exception that is not caught.
Which of the following statements are correct?
- the same exception is thrown to the client
Explanation for this bad answer is :
the client will get EJBTransactionRollbackException or EJBException.
its true when we talk about local ejb invocation by the client.
when it comes to remote invocation, the client will get EJBTransactionRollbackException or RemoteException depends on client transaction's context or not.
Am I right ?
Regards
Radoslaw
About Question com.enthuware.ets.scbcd.v5.2.146 :
Moderator: admin
-
- Site Admin
- Posts: 10064
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.146 :
Yes, if the client it a remote client, it will get java.rmi.RemoteException. As per Section 14.3.1 of EJB 3.0 Core Specification.
This has now been added to the explanation.
thank you!
This has now been added to the explanation.
thank you!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 82 guests