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