org.objectweb.jonas_ejb.container
Class JSessionLocal

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.container.JLocal
        |
        +--org.objectweb.jonas_ejb.container.JSessionLocal
All Implemented Interfaces:
javax.ejb.EJBLocalObject

public abstract class JSessionLocal
extends JLocal

Generic part of the EJBLocalObject implementation

Author:
Philippe Durieux

Field Summary
protected  JSessionFactory bf
           
protected  JSessionSwitch bs
           
 
Constructor Summary
JSessionLocal(JSessionFactory bf)
          constructor
 
Method Summary
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 java.lang.Object getPrimaryKey()
           
 JSessionSwitch getSessionSwitch()
           
 boolean isIdentical(javax.ejb.EJBLocalObject obj)
          Tests if a given EJB is identical to the invoked EJB object.
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 RequestCtx preInvoke(int txa, java.lang.String secu)
          preInvoke is called before any request.
abstract  void remove()
           
 void setSessionSwitch(JSessionSwitch bs)
          finish initialization
 
Methods inherited from class org.objectweb.jonas_ejb.container.JLocal
exportObject, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bf

protected JSessionFactory bf

bs

protected JSessionSwitch bs
Constructor Detail

JSessionLocal

public JSessionLocal(JSessionFactory bf)
constructor
Parameters:
bf - The Session Factory
Method Detail

remove

public abstract void remove()
                     throws javax.ejb.RemoveException

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Returns:
the enterprise Bean's local home interface.

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws javax.ejb.EJBException
Returns:
the Primary Key for this EJBObject
Throws:
javax.ejb.EJBException - Always : Session bean has no primary key

isIdentical

public boolean isIdentical(javax.ejb.EJBLocalObject obj)
Tests if a given EJB is identical to the invoked EJB object. This is different whether the bean is stateless or stateful.
Parameters:
EJBLocalObject - 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:
EJBException: - Thrown when the method failed due to a system-level failure.

setSessionSwitch

public void setSessionSwitch(JSessionSwitch bs)
finish initialization
Parameters:
bs - The Session Switch

getSessionSwitch

public JSessionSwitch getSessionSwitch()
Returns:
the JSessionSwitch for this Session

preInvoke

public RequestCtx preInvoke(int txa,
                            java.lang.String secu)
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:
javax.ejb.EJBException -  

postInvoke

public void postInvoke(RequestCtx rctx)
postInvoke is called after any request.
Parameters:
rctx - The RequestCtx that was returned at preInvoke()
Throws:
javax.ejb.EJBException -