On Mon, 01 Apr 2013 13:36:39 -0300, Michael Prescott <michael.r.presc...@gmail.com> 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) {
Object payload = message.getObject();
session.save(payload);
 }

Due to a limitation in the Tapestry-IoC service proxy creation, you need to put the @CommitAfter annotation in interface method, not in the class method.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to