READ Free Dumps For Oracle- 1z0-898
Question ID 4584 | A session bean business method throws an exception during execution. |
Option A | A. For application exceptions, ensure that if the current transaction commits there will be no loss of data integrity. |
Option B | B. For application exceptions, ensure that the current transaction will commit. |
Option C | C. For system errors, when the client is remote through a java.rmi.remoteException that wraps the original exception. |
Option D | D. For checked exceptions from which the bean cannot recover, throw an EJBException that wraps the original exception. |
Correct Answer | A,D |
Question ID 4585 | FooBean and BarBean are both EJB 3.0 stateless beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRED_NEW. The business method foo in FooBean invokes the Business method bar in BarBean. |
Option A | A. FooBean.foo method receives javax.ejb.EJBException. |
Option B | B. The BarBean bean instance is in ready state for the next invocation. |
Option C | C. FooBean.foo method receives javax -ejb. EJBTtansactionRolledbackException. |
Option D | D. FooBean.foo method receives the original RuntimeException thrown from BarBean.bar method. |
Correct Answer | A |