com.caucho.ejb.message
Class MessageDrivenContextImpl

java.lang.Object
  extended by com.caucho.ejb.AbstractContext
      extended by com.caucho.ejb.message.MessageDrivenContextImpl
All Implemented Interfaces:
EJBContext, MessageDrivenContext

public class MessageDrivenContextImpl
extends AbstractContext
implements MessageDrivenContext

Server container for a message bean.


Field Summary
protected static L10N L
           
protected static java.util.logging.Logger log
           
 
Method Summary
 EJBHome getEJBHome()
          Returns the EJBHome stub for the container.
 boolean getRollbackOnly()
          Forces a rollback of the current transaction.
 AbstractServer getServer()
          Returns the server which owns this bean.
 UserTransaction getUserTransaction()
          Returns the current UserTransaction.
 boolean isCMT()
           
 void setRollbackOnly()
          Forces a rollback of the current transaction.
 
Methods inherited from class com.caucho.ejb.AbstractContext
__caucho_setInvokedBusinessInterface, __caucho_timeout_callback, createLocalHome, createRemoteHomeView, createRemoteView, createRemoteView21, destroy, getCallerIdentity, getCallerPrincipal, getEJBLocalHome, getEJBLocalObject, getEJBMetaData, getEJBObject, getEnvironment, getHandle, getHomeHandle, getInvokedBusinessInterface, getRemoteView, getTimerService, isCallerInRole, isCallerInRole, isDead, lookup, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBLocalHome, getEnvironment, getTimerService, isCallerInRole, isCallerInRole, lookup
 

Field Detail

L

protected static final L10N L

log

protected static final java.util.logging.Logger log
Method Detail

getServer

public AbstractServer getServer()
Description copied from class: AbstractContext
Returns the server which owns this bean.

Specified by:
getServer in class AbstractContext

isCMT

public boolean isCMT()

getEJBHome

public EJBHome getEJBHome()
Returns the EJBHome stub for the container.

Specified by:
getEJBHome in interface EJBContext
Overrides:
getEJBHome in class AbstractContext

getUserTransaction

public UserTransaction getUserTransaction()
                                   throws java.lang.IllegalStateException
Returns the current UserTransaction. Only Session beans with bean-managed transactions may use this.

Specified by:
getUserTransaction in interface EJBContext
Overrides:
getUserTransaction in class AbstractContext
Throws:
java.lang.IllegalStateException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException
Forces a rollback of the current transaction.

Specified by:
setRollbackOnly in interface EJBContext
Overrides:
setRollbackOnly in class AbstractContext
Throws:
java.lang.IllegalStateException

getRollbackOnly

public boolean getRollbackOnly()
                        throws java.lang.IllegalStateException
Forces a rollback of the current transaction.

Specified by:
getRollbackOnly in interface EJBContext
Overrides:
getRollbackOnly in class AbstractContext
Throws:
java.lang.IllegalStateException