You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/03/10 16:15:44 UTC

t5: lengthy process and hibernate connection with c3p0

Hi,

In my T5 app, I start a quartz job where I do following:

1) obtain info from database
2) do some lengthy thing here
3) update the database
4) if not end go back to 2
5) commit

This trigger some exceptions from Hibernate, it complains that a connection
is not valid as it might have been closed by c3p0. Now I'd like to change
this to something like this:

1) obtain info from database, close the connection
2) so some lengthy thing 
3) open a connection to update the database, close it
4) if not end go back to 2

I'd like to use HibernateSessionManager, but it seems to me it still
maintain a transaction even I call commit or abort, any idea? THanks,

Angelo


-- 
View this message in context: http://www.nabble.com/t5%3A-lengthy-process-and-hibernate-connection-with-c3p0-tp22436516p22436516.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org