org.objectweb.jonas_ejb.container
Class JEntityHome
java.lang.Object
javax.rmi.PortableRemoteObject
org.objectweb.jonas_ejb.container.JHome
org.objectweb.jonas_ejb.container.JEntityHome
- All Implemented Interfaces:
- javax.ejb.EJBHome, java.rmi.Remote
- public abstract class JEntityHome
- extends JHome
- implements java.rmi.Remote
This class is the Standard Home for Entity objects
It exists only for beans that have declared a Remote Interface.
It implements javax.ejb.EJBHome interface
- Author:
- Philippe Coq, Philippe Durieux
Methods inherited from class javax.rmi.PortableRemoteObject |
connect, exportObject, narrow, toStub, unexportObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEntityHome
public JEntityHome(EntityDesc dd,
JEntityFactory bf)
throws java.rmi.RemoteException
- constructor
- Parameters:
dd
- The Entity Deployment Decriptorbf
- The Entity Factory
- Throws:
java.rmi.RemoteException
- failed to create the Home
preInvoke
public RequestCtx preInvoke(int txa,
java.lang.String secu)
throws java.rmi.RemoteException
- preInvoke is called before any request.
- Parameters:
txa
- Transaction Attribute (Supports, Required, ...)secu
- Security String that uniquely identifies the method.
- Returns:
- A RequestCtx object
- Throws:
java.rmi.RemoteException
- unexpected exception in preinvoke
postInvoke
public void postInvoke(RequestCtx rctx)
throws java.rmi.RemoteException
- postInvoke is called after any request.
- Parameters:
rctx
- The RequestCtx that was returned at preInvoke()
- Throws:
java.rmi.RemoteException
- unexpected exception in postinvoke
createRemoteObject
public abstract JEntityRemote createRemoteObject()
throws java.rmi.RemoteException
- creates a new Remote Object for that bean.
this is in the generated class because it is mainly "new objectClass()"
- Returns:
- The Remote Object
- Throws:
java.rmi.RemoteException
- could not create the remote object