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
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
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
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
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
>>>
ect, SendEmail
>> sendEmail, HibernateSessionSource sessionSource) {
>>// For each mailout fetch url and send mailout
>>logger.debug("BulkEmailerImpl.execute was called
>> ");
>>
>>Session session = sessionSource.create();
>> u
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
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
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