Using Hibernate 3 , and I am trying to run multiple transactions within the same session.
OpenSession
OpenTrans
DoSomething
CloseTrans
OpenTrans
DoSomething
CloseTrans
OpenTrans
DoSomething
CloseTrans
OpenTrans
DoSomething
CloseTrans
CloseSession
I keep getting this error.
JDBC begin failed
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
I step through the code, I am able to open the session execute my first transaction, then I execute a procedure outside a transaction (stored procedure using the session.getConnection and then CallableStatement) then try to begin a new transaction, this goes to the HibernateUtil file, beginTransaction gets the session and attempts to do a session.beginTransaction() this is where I am getting the error.
Thanks
Tim
|