Re: Tapestry-Hibernate outside of web requests

2013-04-01 Thread Michael Prescott
Okay, I assume this is because of how the CommitAfter advise is applied - when I write my own advice, I have no trouble finding methods that only declare the annotation on the service method implementation. This method, for example, will successfully advise service implementations even when there'

Re: Tapestry-Hibernate outside of web requests

2013-04-01 Thread Thiago H de Paula Figueiredo
On Mon, 01 Apr 2013 13:36:39 -0300, Michael Prescott wrote: How do I make @CommitAfter work outside of a normal web request? public class PeerMessageProcessorImpl implements PeerMessageProcessor { @Inject private Session session; @CommitAfter public void receive(Message message) { Objec

Tapestry-Hibernate outside of web requests

2013-04-01 Thread Michael Prescott
How do I make @CommitAfter work outside of a normal web request? (By way of background, I have a web app that also receives messages that require database work via JGroups. These aren't web requests, but I want to use the same hibernate configuration and infrastructure if at all possible.) Right