| java.lang.Object org.jboss.proxy.ejb.handle.StatefulHandleImpl
StatefulHandleImpl | public class StatefulHandleImpl implements Handle(Code) | | An EJB stateful session bean handle.
author: Marc Fleury author: Jason Dillon author: Bill Burke version: $Revision: 57209 $ |
GET_EJB_OBJECT | final protected static Method GET_EJB_OBJECT(Code) | | A reference to
Handle.getEJBObject .
|
jndiEnv | protected Hashtable jndiEnv(Code) | | The JNDI env in effect when the home handle was created
|
objectName | public int objectName(Code) | | The identity of the bean.
|
serialVersionUID | final static long serialVersionUID(Code) | | Serial Version Identifier.
|
StatefulHandleImpl | public StatefulHandleImpl()(Code) | | |
StatefulHandleImpl | public StatefulHandleImpl(int objectName, String jndiName, Invoker invoker, String invokerProxyBinding, Object id, Object invokerID)(Code) | | Create an ejb handle for a stateful session bean.
Parameters: objectName - - the session container jmx name Parameters: jndiName - - the session home ejb name Parameters: invoker - - the invoker to request the EJBObject from Parameters: invokerProxyBinding - - the type of invoker binding Parameters: id - - the session id |
getEJBObject | public EJBObject getEJBObject() throws RemoteException(Code) | | Handle implementation.
This differs from Stateless and Entity handles which just invoke
standard methods (create and findByPrimaryKey
respectively) on the Home interface (proxy).
There is no equivalent option for stateful SBs, so a direct invocation
on the container has to be made to locate the bean by its id (the
stateful SB container provides an implementation of
getEJBObject).
This means the security context has to be set here just as it would
be in the Proxy.
EJBObject reference. throws: ServerException - Could not get EJBObject. |
getID | public Object getID()(Code) | | the internal session identifier |
|
|