Oracle
1Z0-860 · Question #92
1Z0-860 Question #92: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #92. The question stem and answer options stay visible for context.
Question
Given : 9. @Stateful 10. @TransactionManagement(TransactionManagementType. BEAN) 11. public class FacadeBean implements Facade { 12 @EJB Business business;lnesource SessionContext ctx; 13. public void startStuff0 throws Exception { 14. ctx.getUserTransactionQ.beginO; 15. business. doA0; 16. business. doBQ; 17.} 18. public void endStuff0 throws Exception { 19. ctx.getUserTransactionO.commit0; 11. ©stateless 12. public class BusinessBean implements Business { 13. ©Resource SessionContext ctx; 14. public void doAO { ctx.setRollbackOnlyQ; } 15. @TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW) 16. public void doBQj} A client calls startStuff and endStuff subsequently. Assuming NO other transaction-related metadata, which two statements are correct? (Choose two.)
Options
- AMethod doB is never called.
- BThe transactionin method doB is committed.
- CThe transactionin method doB is rolledback.
- DAn exception is thrown when calling method end Stuff.
- EAn exception is thrown when calling method start Stuff.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.