Question 1

Moderator: admin

Post Reply
mhmd_fyk
Posts: 2
Joined: Sat Feb 07, 2015 8:59 am
Contact:

Question 1

Post by mhmd_fyk »

While excepting a business method in a stateless session bean the container rolls back the method’s transaction. Which three are possible causes for the container’s behavior? (Choose three.)

1.The bean uses container-managed transactions and invokes EJBContext.setRollbackOnly.

2.The bean uses container-managed transactions and invokes EJBContext.getRollbackOnly.

3.The business method throws a java.lang.NullPointerException.

4.The business method throws a checked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value true.

5.The business method throws a unchecked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value true.

6.The bean uses container-managed transactions and throws a checked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value false.

what is the correct answer i think 1, 3, 4
Last edited by admin on Sat Feb 07, 2015 11:42 am, edited 1 time in total.
Reason: removed question reference from title

admin
Site Admin
Posts: 10045
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Question 1

Post by admin »

The question id that you specified in the title does not bring up the same question in our question bank. Please quote your source and specify what exactly do you not understand.
thank you,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests