com.caucho.ejb.message
Class MessageDrivenContextImpl<X>

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

public class MessageDrivenContextImpl<X>
extends AbstractContext<X>
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.
 AbstractEjbBeanManager<X> 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.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.ejb.server.AbstractContext
__caucho_setInvokedBusinessInterface, __caucho_timeout_callback, __caucho_timeout_callback, __caucho_timeout_callback, destroy, getCallerIdentity, getCallerPrincipal, getContextData, getEJBLocalHome, getEJBMetaData, getEnvironment, getInvokedBusinessInterface, getTimerService, isCallerInRole, isCallerInRole, isDead, lookup, setDeclaredRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, 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 AbstractEjbBeanManager<X> getServer()
Description copied from class: AbstractContext
Returns the server which owns this bean.

Specified by:
getServer in class AbstractContext<X>

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<X>

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<X>
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<X>
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<X>
Throws:
java.lang.IllegalStateException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object