org.objectweb.jonas_ejb.container
Class JSessionRemote
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.common.RemoteObject
|
+--org.objectweb.jonas_ejb.container.JRemote
|
+--org.objectweb.jonas_ejb.container.JSessionRemote
- All Implemented Interfaces:
- javax.ejb.EJBObject, java.rmi.Remote, java.io.Serializable
- public abstract class JSessionRemote
- extends JRemote
Generic part of the EJBObject implementation
- Author:
- Philippe Coq, Philippe Durieux
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jonas_ejb.container.JRemote |
bf |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
bs
protected JSessionSwitch bs
myHandle
protected javax.ejb.Handle myHandle
JSessionRemote
public JSessionRemote(JSessionFactory bf)
throws java.rmi.RemoteException
- constructor
- Parameters:
bf
- The Session Factory
remove
public abstract void remove()
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- remove is implemented in the generated part.
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Returns:
- the enterprise Bean's home interface.
getPrimaryKey
public java.lang.Object getPrimaryKey()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- Always : Session bean has never a primary key
isIdentical
public boolean isIdentical(javax.ejb.EJBObject obj)
throws java.rmi.RemoteException
- Tests if a given EJB is identical to the invoked EJB object.
This is different whether the bean is stateless or stateful.
- Parameters:
obj
- - An object to test for identity with the invoked object.- Returns:
- True if the given EJB object is identical to the invoked object.
- Throws:
RemoteException:
- Thrown when the method failed due to a system-level failure.
getHandle
public javax.ejb.Handle getHandle()
throws java.rmi.RemoteException
- Obtains a handle for the EJB object. The handle can be used at later time to re-obtain
a reference to the EJB object, possibly in a different JVM.
- Returns:
- A handle for the EJB object.
- Throws:
RemoteException:
- Thrown when the method failed due to a system-level failure.
setSessionSwitch
public void setSessionSwitch(JSessionSwitch bs)
- finish initialization
- Parameters:
bs
- the SessionSwitch
getSessionSwitch
public JSessionSwitch getSessionSwitch()
- Returns:
- the JSessionSwitch for this Session
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()- Throws:
java.rmi.RemoteException
-