org.jboss.ejb
Class StatefulSessionEnterpriseContext

java.lang.Object
  extended byorg.jboss.ejb.EnterpriseContext
      extended byorg.jboss.ejb.StatefulSessionEnterpriseContext
All Implemented Interfaces:
Serializable

public class StatefulSessionEnterpriseContext
extends EnterpriseContext
implements Serializable

The enterprise context for stateful session beans.

Version:
$Revision: 1.21.2.3 $
Author:
Rickard Öberg, Daniel OConnor
See Also:
Serialized Form

Nested Class Summary
protected  class StatefulSessionEnterpriseContext.StatefulSessionContextImpl
           
 
Nested classes inherited from class org.jboss.ejb.EnterpriseContext
EnterpriseContext.EJBContextImpl, EnterpriseContext.UserTransactionImpl
 
Field Summary
 
Fields inherited from class org.jboss.ejb.EnterpriseContext
log
 
Constructor Summary
StatefulSessionEnterpriseContext(Object instance, Container con)
           
 
Method Summary
 void discard()
           
 javax.ejb.EJBContext getEJBContext()
          Get the EJBContext object
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 javax.ejb.SessionContext getSessionContext()
           
 void setEJBLocalObject(javax.ejb.EJBLocalObject eo)
           
 void setEJBObject(javax.ejb.EJBObject eo)
           
 void setInstance(Object instance)
          During activation of stateful session beans we replace the instance by the one read from the file.
 
Methods inherited from class org.jboss.ejb.EnterpriseContext
clear, getContainer, getId, getInstance, getTransaction, getTxLock, isContainerManagedTx, isLocked, lock, setId, setPrincipal, setTransaction, setUserTransactionStartedListener, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulSessionEnterpriseContext

public StatefulSessionEnterpriseContext(Object instance,
                                        Container con)
                                 throws RemoteException
Method Detail

discard

public void discard()
             throws RemoteException
Specified by:
discard in class EnterpriseContext
Throws:
RemoteException

getEJBContext

public javax.ejb.EJBContext getEJBContext()
Description copied from class: EnterpriseContext
Get the EJBContext object

Specified by:
getEJBContext in class EnterpriseContext

setInstance

public void setInstance(Object instance)
During activation of stateful session beans we replace the instance by the one read from the file.


setEJBObject

public void setEJBObject(javax.ejb.EJBObject eo)

getEJBObject

public javax.ejb.EJBObject getEJBObject()

setEJBLocalObject

public void setEJBLocalObject(javax.ejb.EJBLocalObject eo)

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()

getSessionContext

public javax.ejb.SessionContext getSessionContext()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.