org.openejb.mdb
Class MDBContext

java.lang.Object
  extended byorg.openejb.EJBContextImpl
      extended byorg.openejb.mdb.MDBContext
All Implemented Interfaces:
javax.ejb.EJBContext, javax.ejb.MessageDrivenContext

public class MDBContext
extends EJBContextImpl
implements javax.ejb.MessageDrivenContext

Implementation of MessageDrivenContext using the State pattern to determine which methods can be called given the current state of the Session bean.

Version:
$Revision: 445265 $ $Date: 2005-03-09 06:01:02 +0100 (Wed, 09 Mar 2005) $

Nested Class Summary
static class MDBContext.MDBContextState
           
 
Nested classes inherited from class org.openejb.EJBContextImpl
EJBContextImpl.EJBContextState
 
Field Summary
static MDBContext.MDBContextState BIZ_INTERFACE
           
static MDBContext.MDBContextState BIZ_WSENDPOINT
           
static MDBContext.MDBContextState EJBCREATEREMOVE
           
static MDBContext.MDBContextState EJBTIMEOUT
           
static MDBContext.MDBContextState INACTIVE
           
static MDBContext.MDBContextState SETSESSIONCONTEXT
           
 
Fields inherited from class org.openejb.EJBContextImpl
context, state, userTransaction
 
Constructor Summary
MDBContext(MDBInstanceContext context, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager, org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
           
 
Method Summary
 javax.xml.rpc.handler.MessageContext getMessageContext()
           
 boolean setTimerState(EJBOperation operation)
           
 
Methods inherited from class org.openejb.EJBContextImpl
getCallerIdentity, getCallerPrincipal, getCallerSubject, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setCallerSubject, setRollbackOnly
 
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, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Field Detail

INACTIVE

public static final MDBContext.MDBContextState INACTIVE

SETSESSIONCONTEXT

public static final MDBContext.MDBContextState SETSESSIONCONTEXT

EJBCREATEREMOVE

public static final MDBContext.MDBContextState EJBCREATEREMOVE

BIZ_INTERFACE

public static final MDBContext.MDBContextState BIZ_INTERFACE

BIZ_WSENDPOINT

public static final MDBContext.MDBContextState BIZ_WSENDPOINT

EJBTIMEOUT

public static final MDBContext.MDBContextState EJBTIMEOUT
Constructor Detail

MDBContext

public MDBContext(MDBInstanceContext context,
                  org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
                  org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
Method Detail

setTimerState

public boolean setTimerState(EJBOperation operation)

getMessageContext

public javax.xml.rpc.handler.MessageContext getMessageContext()
                                                       throws IllegalStateException
Throws:
IllegalStateException


Copyright © 1999-2006 OpenEJB. All Rights Reserved.