org.objectweb.jonas_ejb.container.JSessionHome Class Reference

Inherits org.objectweb.jonas_ejb.container.JHome.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionHome (SessionDesc dd, JSessionFactory bf) throws RemoteException
RequestCtx preInvoke (int txa) throws RemoteException
void postInvoke (RequestCtx rctx) throws RemoteException
void remove (java.lang.Object pk) throws RemoteException, RemoveException
abstract JSessionRemote createRemoteObject () throws RemoteException

Detailed Description

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
Author:
Philippe Durieux

Definition at line 45 of file JSessionHome.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionHome.JSessionHome SessionDesc  dd,
JSessionFactory  bf
throws RemoteException
 

constructor

Parameters:
dd The Session Bean Deployment Descriptor
bf THe Session Bean Factory

Definition at line 52 of file JSessionHome.java.


Member Function Documentation

abstract JSessionRemote org.objectweb.jonas_ejb.container.JSessionHome.createRemoteObject  )  throws RemoteException [pure virtual]
 

Creates the EJBObject (remote) this is in the generated class because it is mainly "new objectClass()"

Returns:
A JSessionRemote object

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

postInvoke is called after any request.

Parameters:
rctx The RequestCtx that was returned at preInvoke()
Exceptions:
RemoteException unexpected exception in postinvoke

Reimplemented from org.objectweb.jonas_ejb.container.JHome.

Definition at line 65 of file JSessionHome.java.

References org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(), and org.objectweb.jonas_ejb.container.JSessionContext.setConnectionList().

Here is the call graph for this function:

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

preInvoke is called before any request.

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
RemoteException unexpected exception in preinvoke

Reimplemented from org.objectweb.jonas_ejb.container.JHome.

Definition at line 57 of file JSessionHome.java.

References org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(), and org.objectweb.jonas_ejb.container.JFactory.preInvoke().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JSessionHome.remove java.lang.Object  pk  )  throws RemoteException, RemoveException
 

remove(pk) is not allowed for session beans

Parameters:
pk the primary key
Exceptions:
RemoveException Always.

Definition at line 87 of file JSessionHome.java.


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