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
ManagerSY
public ManagerSY()
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