> 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
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
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
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
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
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
--
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
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
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.
>
> -
>
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
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
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
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:
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
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
>
> 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
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
17 matches
Mail list logo