org.objectweb.jonas_ejb.container
Class JRepStatefulRemote
java.lang.Object
javax.rmi.PortableRemoteObject
org.objectweb.jonas_ejb.container.JRemote
org.objectweb.jonas_ejb.container.JSessionRemote
org.objectweb.jonas_ejb.container.JRepStatefulRemote
- All Implemented Interfaces:
- javax.ejb.EJBObject, java.rmi.Remote
- public abstract class JRepStatefulRemote
- extends JSessionRemote
Generic part of the EJBObject implementation for replicated SFSBs
- Author:
- Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)
Fields inherited from class org.objectweb.jonas_ejb.container.JRemote |
bf |
Method Summary |
protected org.objectweb.carol.cmi.ha.ResponseInfo |
injectState()
Injects the state of the bean if the cluster object id received in the
request is in the current node. |
void |
postInvoke(RequestCtx rctx,
java.lang.Object response,
boolean remove)
postInvoke is called after any request. |
RequestCtx |
preInvoke(int txa)
preInvoke is called before any request. |
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 |
JRepStatefulRemote
public JRepStatefulRemote(JSessionFactory bf)
throws java.rmi.RemoteException
preInvoke
public RequestCtx preInvoke(int txa)
throws java.rmi.RemoteException
- preInvoke is called before any request.
- Overrides:
preInvoke
in class JSessionRemote
- Parameters:
txa
- Transaction Attribute (Supports, Required, ...)
- Returns:
- A RequestCtx object
- Throws:
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.
postInvoke
public void postInvoke(RequestCtx rctx,
java.lang.Object response,
boolean remove)
throws java.rmi.RemoteException
- postInvoke is called after any request.
- Parameters:
rctx
- The RequestCtx that was returned at preInvoke()remove
- TODO
- Throws:
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.
injectState
protected org.objectweb.carol.cmi.ha.ResponseInfo injectState()
- Injects the state of the bean if the cluster object id received in the
request is in the current node. It extracts the object id passed through
the interceptors from the request id included in the current HA context.
- Returns:
- true if the bean state has been injected