Exception | Transaction Status | Notes |
The following exceptions are the basic exceptions | ||
EJBException | May or may not have been marked for rollback. | Not possible to determine whether EJB method has executed or not. Error may have occurred during communication with, or processing in, the EJB. |
RemoteException | May or may not have been marked for rollback. | See EJBException. |
The following exceptions indicate that the transaction has been marked for rollback and will never commit. | ||
EJBTransactionRolledback-Exception | Rolled back or marked for rollback | Subclass of EJBException. EJB invoked using EJB 3.1 view and EJB executing in client's transaction. |
TransactionRolledbackLocal-Exception | Rolled back or marked for rollback | Subclass of EJBException. EJB invoked using EJB 2.1 local client view. |
TransactionRolledback-Exception | Rolled back or marked for rollback | Subclass of RemoteException. JTA standard exception. EJB invoked using EJB 2.1 remote view or web service view. |
The following exceptions indicate that an attempt was made to invoke a method that require a client transaction without the client having a transaction context. These exceptions usually indicate an error in method transaction requirement declaration(s). |
||
EJBTransactionRequired-Exception | No transaction | Subclass of EJBException. EJB invoked using EJB 3.1 view. |
TransactionRequiredLocal-Exception | No transaction | Subclass of EJBException. EJB invoked using EJB 2.1 local client view. |
TransactionRequiredException | No transaction | Subclass of RemoteException. JTA standard exception. EJB invoked using EJB 2.1 remote view or web service view. |
The following exceptions indicate that an attempt was made to invoke a method on an EJB object that does not exist. | ||
NoSuchEJBException | Rolled back or marked for rollback. | Subclass of EJBException. EJB invoked using EJB 3.1 view. |
NoSuchObjectLocal-Exception | Rolled back or marked for rollback. | Subclass of EJBException. EJB invoked using EJB 2.1 local client view. |
NoSuchObjectException | Rolled back or marked for rollback. | Subclass of RemoteException. EJB invoked using EJB 2.1 remote client view. |
摘錄自:http://www.slideshare.net/krizsan/ocp-jbcd-6-study-notes,96頁。
沒有留言:
張貼留言