On 18 Nov (02:07), dosapati wrote: > When I use Hibernate session for long duration transactions, Can I > disconnect the SQL > connection from the session without committing and reconnect again when I > need. And finally > will commit the transaction after all the actions with the system. I will > rollback If I get any problems > in the transaction. Is this possible?
Yes, but a disconnect will end the database communication (return the connection to the pool), so you have to finalize your database transaction. But the Session is also a cache for the unit of work, so you can work with the same objects that where loaded in that Session again after reconnecting. -- Christian Bauer [EMAIL PROTECTED] ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel