org.objectweb.jonas_ejb.container
Class JSessionHandle

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JSessionHandle
All Implemented Interfaces:
java.io.Serializable, javax.ejb.Handle

public class JSessionHandle
extends java.lang.Object
implements javax.ejb.Handle, java.io.Serializable

This class implements javax.ejb.Handle interface. For a Session Bean a Handle is directly its RMI Reference because its life time is limited by the JOnAS Server life time. (no need to retrieve it after the JOnAS Server has been restarted)

Author:
Philippe Coq
See Also:
Serialized Form

Constructor Summary
JSessionHandle(javax.ejb.EJBObject jb)
          constructor
 
Method Summary
 javax.ejb.EJBObject getEJBObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSessionHandle

public JSessionHandle(javax.ejb.EJBObject jb)
constructor

Parameters:
jb - the EJBObject represented by this handle.
Method Detail

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws java.rmi.RemoteException
Specified by:
getEJBObject in interface javax.ejb.Handle
Returns:
the EJBObject represented by this handle.
Throws:
java.rmi.RemoteException - e The EJB object could not be obtained because of a system-level failure.