org.ow2.jonas.lib.ejb21
Class JHomeHandle

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

public class JHomeHandle
extends Object
implements HomeHandle, Serializable

This class implements javax.ejb.HomeHandle interface. A handle is an abstraction of a network reference to a home object. A handle is intended to be used as a "robust" persistent reference to a home object.

Author:
Philippe Durieux, Philippe Coq
See Also:
Serialized Form

Constructor Summary
JHomeHandle(String hname)
          constructor
 
Method Summary
 EJBHome getEJBHome()
          Obtains the home object represented by this handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JHomeHandle

public JHomeHandle(String hname)
constructor

Parameters:
hname - JNDI name of the Home
Method Detail

getEJBHome

public EJBHome getEJBHome()
                   throws RemoteException
Obtains the home object represented by this handle.

Specified by:
getEJBHome in interface HomeHandle
Returns:
The EJBHome object
Throws:
RemoteException - The home object could not be obtained because of a system-level failure.


Copyright © 2010 OW2 Consortium. All Rights Reserved.