org.ow2.jonas.lib.ejb21
Class JSessionHome

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
      extended by org.ow2.jonas.lib.ejb21.JHome
          extended by org.ow2.jonas.lib.ejb21.JSessionHome
All Implemented Interfaces:
Remote, EJBHome

public abstract class JSessionHome
extends JHome
implements Remote

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

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.ejb21.JHome
bf, dd, ejbMetaData, unregistered
 
Constructor Summary
JSessionHome(SessionDesc dd, JSessionFactory bf)
          constructor
 
Method Summary
abstract  JSessionRemote createRemoteObject()
          Creates the EJBObject (remote) this is in the generated class because it is mainly "new objectClass()"
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 RequestCtx preInvoke(int txa)
          preInvoke is called before any request.
 void remove(Object pk)
          remove(pk) is not allowed for session beans
 
Methods inherited from class org.ow2.jonas.lib.ejb21.JHome
checkSecurity, getBf, getDd, getEJBMetaData, getHomeHandle, getJndiName, register, remove, unregister
 
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
 

Constructor Detail

JSessionHome

public JSessionHome(SessionDesc dd,
                    JSessionFactory bf)
             throws RemoteException
constructor

Parameters:
dd - The Session Bean Deployment Descriptor
bf - THe Session Bean Factory
Throws:
RemoteException
Method Detail

preInvoke

public RequestCtx preInvoke(int txa)
                     throws RemoteException
Description copied from class: JHome
preInvoke is called before any request.

Overrides:
preInvoke in class JHome
Parameters:
txa - Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Throws:
RemoteException - unexpected exception in preinvoke

postInvoke

public void postInvoke(RequestCtx rctx)
                throws RemoteException
Description copied from class: JHome
postInvoke is called after any request.

Overrides:
postInvoke in class JHome
Parameters:
rctx - The RequestCtx that was returned at preInvoke()
Throws:
RemoteException - unexpected exception in postinvoke

remove

public void remove(Object pk)
            throws RemoteException,
                   RemoveException
remove(pk) is not allowed for session beans

Specified by:
remove in interface EJBHome
Specified by:
remove in class JHome
Parameters:
pk - the primary key
Throws:
RemoveException - Always.
RemoteException - exception

createRemoteObject

public abstract JSessionRemote createRemoteObject()
                                           throws RemoteException
Creates the EJBObject (remote) this is in the generated class because it is mainly "new objectClass()"

Returns:
A JSessionRemote object
Throws:
RemoteException


Copyright © 2010 OW2 Consortium. All Rights Reserved.