You will have to call commit directly, or via HibernateSessionManager.
Have a look at how CommitAfterWorker uses HibernateSessionManager. You need to do the same within your thread.
On 28/02/2012 10:11 PM, fmaylinch wrote:
Howard, I tried the ptm.run(...) idiom you posted and I found that the changes are not committed. How can I commit the changes I perform inside that thread? I suppose I can't add @CommitAfter to the method that starts the thread because that method will probably end before the thread. But I tried putting it on the Runnable run() method (which is called by the ptm), and that doesn't commit changes either. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reusing-tapestry-hibernate-session-in-a-thread-tp5438833p5521521.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org