org.objectweb.jonas_ejb.container
Class JSessionHome
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.common.RemoteObject
|
+--org.objectweb.jonas_ejb.container.JHome
|
+--org.objectweb.jonas_ejb.container.JSessionHome
- All Implemented Interfaces:
- javax.ejb.EJBHome, java.rmi.Remote, java.io.Serializable
- public abstract class JSessionHome
- extends JHome
This class is the Standard Home for Session objects
It exists only for beans that have declared a Remote Interface.
It implements javax.ejb.EJBHome interface (by the inherited class JHome)
It implements a pool of EJBObject's
- Author:
- Philippe Durieux
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
abstract JSessionRemote |
createRemoteObject()
Creates the EJBObject (remote)
this is in the generated class because it is mainly "new objectClass()" |
void |
postInvoke(RequestCtx rctx)
postInvoke is called after any request. |
RequestCtx |
preInvoke(int txa,
java.lang.String secu)
preInvoke is called before any request. |
void |
remove(java.lang.Object pk)
remove(pk) is not allowed for session beans |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
JSessionHome
public JSessionHome(SessionDesc dd,
JSessionFactory bf)
throws java.rmi.RemoteException
- constructor
- Parameters:
dd
- The Session Bean Deployment Descriptorbf
- THe Session Bean Factory
remove
public void remove(java.lang.Object pk)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- remove(pk) is not allowed for session beans
- Overrides:
remove
in class JHome
- Parameters:
pk
- the primary key- Throws:
javax.ejb.RemoveException
- Always.
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
-
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()
createRemoteObject
public abstract JSessionRemote createRemoteObject()
throws java.rmi.RemoteException
- Creates the EJBObject (remote)
this is in the generated class because it is mainly "new objectClass()"
- Returns:
- A JSessionRemote object