Home Javacertification Bcd-guide Identify the use and behavior of the MessageDrivenContext interface methods.

Ask Questions?

View Latest Questions


 
 

Identify the use and behavior of the MessageDrivenContext interface methods.
Posted on: April 18, 2011 at 12:00 AM
This page discusses - Identify the use and behavior of the MessageDrivenContext interface methods.

Identify the use and behavior of the MessageDrivenContext interface methods.

The container provides the message-driven bean instance with a MessageDrivenContext. This gives the message-driven bean instance access to the instance's context maintained by the container. The MessageDrivenContext interface has the following methods:

  • The setRollbackOnly method allows the instance to mark the current transaction such that the only outcome of the transaction is a rollback. ONLY instances of a message-driven bean with container-managed transaction (CMT) demarcation can use this method.

  • The