READ Free Dumps For Oracle- 1z0-898
Question ID 4612 | A session bean business method invokes UserTransaction.setRollbackonly and receives an IllegalStateException. |
Option A | A. The bean is using bean-managed transactions regardless of whether there is an active transaction. |
Option B | B. There is no circumstance that would cause setRollbackOnly to throw an IllegalStateException. |
Option C | C. The bean is using bean managed transaction demarcation, and UserTransaccion.begin has been invoked. |
Option D | D. The setRollbackOnly method is invoked within a bean-managed transaction, and userTransaction.commit has NOT been invoked. |
Correct Answer | A |
Question ID 4613 | A JavaEE application is packaged as follows. |
Option A | A. This is an invalid application. A JavaEE application cannot have more than one persistent with same name. |
Option B | B. “MyPu” defined under each module is visible to only the defining module. There is no way other modules can access it. |
Option C | C. Code in the ejb1.jar can access “MyPU” defined under war1.war using “war1#myPU” |
Correct Answer | B |