Re: @CommitAfter not committing my transaction

2012-11-29 Thread Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 22:16:35 -0200, Pillar sotodel...@hotmail.com wrote: I'm not in a position to test it right now, so I won't say if it worked. Where does Tapestry get that session for you? If you're using tapestry-hibernate and @Inject'ing it, @CommitAfter will work. Otherwise, no. --

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 22:28:58 -0200, Pillar sotodel...@hotmail.com wrote: Ok, so I didn't know that, I thought SessionFactory was a singleton. It never was. If you're connecting to two different databases, you'll need a SessionFactory for each. -- Thiago H. de Paula Figueiredo

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Howard Lewis Ship
The idea with @CommitAfter is that Tapestry is responsible for handling the transaction, using the session-in-view pattern. The session is created lazily, when first needed. The transaction for the session is committed at the end of a method with @CommitAfter. The session is available to be

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
performed on the session? I'm assuming no. How do you manage that? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718406.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
the onSuccess() method with @CommitAfter, then the delete is commit and the entity is no longer in my db. Is this what you meant by doesn't support nesting? What is up? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718407

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Pillar
Answer my question too. I read that little bit you linked and I understand the HibernateTransactionAdvisor does it for you. -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718408.html Sent from the Tapestry - User

Re: @CommitAfter not committing my transaction

2012-11-29 Thread Lenny Primak
meant by doesn't support nesting? What is up? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718407.html Sent from the Tapestry - User mailing list archive at Nabble.com

@CommitAfter not committing my transaction

2012-11-28 Thread Pillar
on Tapestry 5.3 and have all the dependencies for tapestry-hibernate. What am I doing wrong? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Norman Franke
this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

RE: @CommitAfter not committing my transaction

2012-11-28 Thread Tony Nelson
for the above user. I'm on Tapestry 5.3 and have all the dependencies for tapestry-hibernate. What am I doing wrong? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364.html Sent from the Tapestry - User mailing list archive

RE: @CommitAfter not committing my transaction

2012-11-28 Thread Pillar
it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718367.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
-not-committing-my-transaction-tp5718364p5718367.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

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Pillar
-not-committing-my-transaction-tp5718364p5718374.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

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Jay Ginete
I believe you are suppose to inject the Hibernate session. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Pillar
-not-committing-my-transaction-tp5718364p5718377.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

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
-not-committing-my-transaction-tp5718364p5718374.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

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Pillar
Ok, so I didn't know that, I thought SessionFactory was a singleton. I will use Tapestry-Hibernate the way it's meant to just like in the link you posted. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718380