org.ow2.jonas.lib.ejb21
Class JSessionHandle

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.JSessionHandle
All Implemented Interfaces:
Serializable, Handle

public class JSessionHandle
extends Object
implements Handle, 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(EJBObject jb)
          constructor
 
Method Summary
 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(EJBObject jb)
constructor

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

getEJBObject

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.