Re: @CommitAfter not committing my transaction

2012-11-29 Thread Lenny Primak
> 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.html > Sent

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 Pillar
notate 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-tp

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 Nabbl

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 injecte

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 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 Thiago H de Paula Figueiredo
On Wed, 28 Nov 2012 22:16:35 -0200, Pillar 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. -- Thiago H. de Paula Figu

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-tp57183

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
gt; View this message in context: > http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364p5718374.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - >

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Pillar
tAfter-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-mai

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
tAfter-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-mai

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
n 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 Pillar
mitting 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 unsubscri

RE: @CommitAfter not committing my transaction

2012-11-28 Thread Tony Nelson
ed, I check my database and there is no entry 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.ht

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Norman Franke
> > 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

@CommitAfter not committing my transaction

2012-11-28 Thread Pillar
is no entry 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 Tapes