org.objectweb.jonas_ejb.container.JSessionRemote Class Reference

Inherits org.objectweb.jonas_ejb.container.JRemote.

Inheritance diagram for org.objectweb.jonas_ejb.container.JSessionRemote:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JSessionRemote:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionRemote (JSessionFactory bf) throws RemoteException
abstract void remove () throws RemoteException, RemoveException
EJBHome getEJBHome ()
Object getPrimaryKey () throws RemoteException
boolean isIdentical (EJBObject obj) throws RemoteException
Handle getHandle () throws RemoteException
void setSessionSwitch (JSessionSwitch bs)
JSessionSwitch getSessionSwitch ()
RequestCtx preInvoke (int txa) throws RemoteException
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx) throws RemoteException

Protected Attributes

JSessionSwitch bs

Detailed Description

Generic part of the EJBObject implementation
Author:
Philippe Coq

Philippe Durieux

Definition at line 50 of file JSessionRemote.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionRemote.JSessionRemote JSessionFactory  bf  )  throws RemoteException
 

constructor

Parameters:
bf The Session Factory
Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.

Definition at line 63 of file JSessionRemote.java.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JSessionRemote.checkSecurity EJBInvocation  ejbInv  ) 
 

Check if the access to the bean is authorized

Parameters:
ejbInv object containing security signature of the method, args of method, etc

Definition at line 237 of file JSessionRemote.java.

References org.objectweb.jonas_ejb.container.JFactory.checkSecurity().

Here is the call graph for this function:

EJBHome org.objectweb.jonas_ejb.container.JSessionRemote.getEJBHome  ) 
 

Returns:
the enterprise Bean's home interface.

Definition at line 83 of file JSessionRemote.java.

References org.objectweb.jonas_ejb.container.BeanFactory.getHome().

Referenced by org.objectweb.jonas_ejb.container.JSessionRemote.isIdentical().

Here is the call graph for this function:

Handle org.objectweb.jonas_ejb.container.JSessionRemote.getHandle  )  throws 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.
Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.

Definition at line 164 of file JSessionRemote.java.

Object org.objectweb.jonas_ejb.container.JSessionRemote.getPrimaryKey  )  throws RemoteException
 

Exceptions:
RemoteException Always : Session bean has never a primary key
Returns:
never carried out because a exception is thrown

Definition at line 110 of file JSessionRemote.java.

JSessionSwitch org.objectweb.jonas_ejb.container.JSessionRemote.getSessionSwitch  ) 
 

Returns:
the JSessionSwitch for this Session

Definition at line 213 of file JSessionRemote.java.

boolean org.objectweb.jonas_ejb.container.JSessionRemote.isIdentical EJBObject  obj  )  throws 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.
Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.

Definition at line 129 of file JSessionRemote.java.

References org.objectweb.jonas_ejb.container.JSessionRemote.getEJBHome(), org.objectweb.jonas_ejb.container.JHome.getEJBMetaData(), and org.objectweb.jonas_ejb.container.JSessionFactory.isStateful.

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JSessionRemote.postInvoke RequestCtx  rctx  )  throws RemoteException
 

postInvoke is called after any request.

Parameters:
rctx The RequestCtx that was returned at preInvoke()
Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.

Definition at line 248 of file JSessionRemote.java.

References org.objectweb.jonas_ejb.container.JSessionRemote.bs, org.objectweb.jonas_ejb.container.JSessionSwitch.delistConnections(), org.objectweb.jonas_ejb.container.JSessionSwitch.discardICtx(), org.objectweb.jonas_ejb.container.JFactory.postInvokeRemote(), org.objectweb.jonas_ejb.container.JSessionSwitch.releaseICtx(), and org.objectweb.jonas_ejb.container.JSessionSwitch.saveBeanTx().

Here is the call graph for this function:

RequestCtx org.objectweb.jonas_ejb.container.JSessionRemote.preInvoke int  txa  )  throws RemoteException
 

preInvoke is called before any request.

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.

Definition at line 224 of file JSessionRemote.java.

References org.objectweb.jonas_ejb.container.JSessionRemote.bs, org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JSessionSwitch.enlistConnections(), org.objectweb.jonas_ejb.container.RequestCtx.mustCommit, org.objectweb.jonas_ejb.container.JFactory.preInvokeRemote(), and org.objectweb.jonas_ejb.container.JSessionSwitch.setMustCommit().

Here is the call graph for this function:

abstract void org.objectweb.jonas_ejb.container.JSessionRemote.remove  )  throws RemoteException, RemoveException [pure virtual]
 

remove is implemented in the generated part.

Exceptions:
RemoteException Thrown when the method failed due to a system-level failure.
RemoveException Thrown when the method failed due to remove failure.

void org.objectweb.jonas_ejb.container.JSessionRemote.setSessionSwitch JSessionSwitch  bs  ) 
 

finish initialization

Parameters:
bs the SessionSwitch

Definition at line 205 of file JSessionRemote.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionSwitch.JSessionSwitch().


Member Data Documentation

JSessionSwitch org.objectweb.jonas_ejb.container.JSessionRemote.bs [protected]
 

bs

Definition at line 56 of file JSessionRemote.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionRemote.postInvoke(), and org.objectweb.jonas_ejb.container.JSessionRemote.preInvoke().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:42 2005 for JOnAS by  doxygen 1.3.9.1