|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.rmi.PortableRemoteObject org.ow2.jonas.lib.ejb21.JHome org.ow2.jonas.lib.ejb21.JSessionHome
public abstract class JSessionHome
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
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.ejb21.JHome |
---|
bf, dd, ejbMetaData, unregistered |
Constructor Summary | |
---|---|
JSessionHome(SessionDesc dd,
JSessionFactory bf)
constructor |
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)
preInvoke is called before any request. |
void |
remove(Object pk)
remove(pk) is not allowed for session beans |
Methods inherited from class org.ow2.jonas.lib.ejb21.JHome |
---|
checkSecurity, getBf, getDd, getEJBMetaData, getHomeHandle, getJndiName, register, remove, unregister |
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 |
Constructor Detail |
---|
public JSessionHome(SessionDesc dd, JSessionFactory bf) throws RemoteException
dd
- The Session Bean Deployment Descriptorbf
- THe Session Bean Factory
RemoteException
Method Detail |
---|
public RequestCtx preInvoke(int txa) throws RemoteException
JHome
preInvoke
in class JHome
txa
- Transaction Attribute (Supports, Required, ...)
RemoteException
- unexpected exception in preinvokepublic void postInvoke(RequestCtx rctx) throws RemoteException
JHome
postInvoke
in class JHome
rctx
- The RequestCtx that was returned at preInvoke()
RemoteException
- unexpected exception in postinvokepublic void remove(Object pk) throws RemoteException, RemoveException
remove
in interface EJBHome
remove
in class JHome
pk
- the primary key
RemoveException
- Always.
RemoteException
- exceptionpublic abstract JSessionRemote createRemoteObject() throws RemoteException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |