Go back to 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam

Question :-

MyMsg is a JMS message-driven bean with container-managed transaction demarcation. FooBean is an EJB 3.x stateless session bean that sends message to the JMS destination with MyMsgBean is associated. MyMsgBean's message listener method has transaction attribute REQUIRED, and is defined as follows: 10. public class MyMsgBean implements javax.jms.messageListener { 11. public void onMessage(javax.jms.Message message) { 12. / / do some work not shown here 13. thrown new RuntimeException("unexpected error . . . "); 14. } Which statement is true about the result of message processing?
FooBean receives javax.ejb.EJBException.
The container discards the MyMsgBean bean instance.
FooBean receives the original RuntimeException thrown from the message listener method.
The container does NOT roll back the transaction, and FooBean can continue the transaction.

Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ? Click here.