Hi Davor, Thanks for your ThreadSource, it works and makes threaded tasks in T5 easier, I have included it in my app. however, in my case, the threaded service has insert and update in the same time:
Doc doc = new Doc(); session.save(doc); doc.setTitle("test"); in the Hibernate log, it has : insert into doc... but you can't see update and commit. if I add a sessionManager.commit() then I can see: update doc set... [DEBUG] JDBCTransaction committed JDBC Connection [DEBUG] JDBCTransaction begin [DEBUG] JDBCTransaction current autocommit status: false so commit somehow works. A.C. Davor Hrg wrote: > > you should call ThreadCleanupHub.cleanup() at the > each thread you spawn for your self, or tapestry threaded > resources will not get cleaned, and youl make a mem leak. > > > tapestry uses ThreadLocal to store threaded services like Session, > for example if any part of the code references session(calls a method) > while it is > executed from your thread new session for that thread will be created, > and without calling ThreadCleanupHub.cleanup() inside that thread service > > > -- View this message in context: http://www.nabble.com/T5%3A-Hibernate-and-threaded-service-tp15328171p15336338.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]