Re: Reusing tapestry hibernate session in a thread

2012-02-28 Thread fmaylinch
tatic void adviseTransactions(HibernateTransactionAdvisor advisor, MethodAdviceReceiver receiver) { advisor.addTransactionCommitAdvice(receiver); } Thanks for your help -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reusing-tapestry-hibernate-session-i

Re: Reusing tapestry hibernate session in a thread

2012-02-28 Thread Paul Stanton
e 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

Re: Reusing tapestry hibernate session in a thread

2012-02-28 Thread fmaylinch
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 ma

Re: Reusing tapestry hibernate session in a thread

2012-02-27 Thread Paul Stanton
ards, Greg ---- Original Message -------- Subject: Reusing tapestry hibernate session in a thread Date: Sun, 29 Jan 2012 11:28:41 +1000 From: Greg Pagendam-Turner Organization: Liftyourgame To: Tapestry users scheduled thread Hi, I have a batch job that sends email to users based

Re: Reusing tapestry hibernate session in a thread

2012-02-27 Thread Howard Lewis Ship
chronized void execute(String url, String subject, SendEmail >>> sendEmail, HibernateSessionSource sessionSource) { >>>        // For each mailout fetch url and send mailout >>>        logger.debug("BulkEmailerImpl.execute was called >>>

Re: Reusing tapestry hibernate session in a thread

2012-02-27 Thread Greg Pagendam-Turner
ect, SendEmail >> sendEmail, HibernateSessionSource sessionSource) { >>// For each mailout fetch url and send mailout >>logger.debug("BulkEmailerImpl.execute was called >> "); >> >>Session session = sessionSource.create(); >> u

Re: Reusing tapestry hibernate session in a thread

2012-02-26 Thread Paul Stanton
ards, Greg Original Message Subject: Reusing tapestry hibernate session in a thread Date: Sun, 29 Jan 2012 11:28:41 +1000 From: Greg Pagendam-Turner Organization: Liftyourgame To: Tapestry users scheduled thread Hi, I have a batch job that sends email t

Re: Reusing tapestry hibernate session in a thread

2012-01-28 Thread Greg Pagendam-Turner
al Message Subject: Reusing tapestry hibernate session in a thread Date: Sun, 29 Jan 2012 11:28:41 +1000 From: Greg Pagendam-Turner Organization: Liftyourgame To: Tapestry users scheduled thread Hi, I have a batch job that sends email to users based on a query in m

Reusing tapestry hibernate session in a thread

2012-01-28 Thread Greg Pagendam-Turner
Hi, I have a batch job that sends email to users based on a query in my database. AppModule starts it up like so in a: @Startup public static void scheduleJobs(PeriodicExecutor executor, final BulkEmailer emailer, @Value("${liftyourgame.url}") Str