org.objectweb.jonas.jtests.beans.jdbc
Class ManagerSY

org.objectweb.jonas.jtests.beans.jdbc.ManagerSY

public class ManagerSY

Stateful Session Bean that manages directly jdbc connections


Constructor Summary
ManagerSY()
           
 
Method Summary
 void afterBegin()
           
 void afterCompletion(boolean committed)
           
 void beforeCompletion()
           
 boolean closeConnection(int nb)
          Return true if close Connection worked
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 boolean openCloseConnection()
          open and close a Connection
 int openConnection()
          return the number associated to the connection opened, or 0 if it failed.
 void setSessionContext(javax.ejb.SessionContext ctx)
          Make here all initialisations needed in this stateful session bean
 

Constructor Detail

ManagerSY

public ManagerSY()
Method Detail

afterBegin

public void afterBegin()

beforeCompletion

public void beforeCompletion()

afterCompletion

public void afterCompletion(boolean committed)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
Make here all initialisations needed in this stateful session bean

ejbRemove

public void ejbRemove()

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException

ejbPassivate

public void ejbPassivate()

ejbActivate

public void ejbActivate()

openCloseConnection

public boolean openCloseConnection()
                            throws java.rmi.RemoteException
open and close a Connection

openConnection

public int openConnection()
                   throws java.rmi.RemoteException
return the number associated to the connection opened, or 0 if it failed.

closeConnection

public boolean closeConnection(int nb)
                        throws java.rmi.RemoteException
Return true if close Connection worked