Hibernate in JBoss: You cannot commit during a managed transaction!
From: Carlo LF (carlo.lf_at_onlinehome.de)
Date: 12/20/04
- Previous message: Lionel: "Re: TOMCAT/MYSQL/JSP"
- Next in thread: Carlo Luib-Finetti: "Re: Hibernate in JBoss: You cannot commit during a managed transaction!"
- Reply: Carlo Luib-Finetti: "Re: Hibernate in JBoss: You cannot commit during a managed transaction!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Dec 2004 07:07:09 -0800
>Are you getting an instance of Hibernate through JBoss or on your
own.
I bound the Hibernate SessionFactory into JBoss JNDI as Bauer/King
adviced in their book 'Hibernate in Action', so I get a Hibernate
Session by doing a lookup for the SessionFactory.
If I understand the book from above, it says that Hibernate is smart
enough to detect if it is running in a managed environment, where
transactions are governed by a separate Transaction Manager (which,
btw, you have to configure in Hibernate's global configuration). So I
thought, that a statement which commits a Hibernate transaction,
simply does nothing, but 'waits' until the JBoss TX manager commits
the transaction.
Carlo Luib-Finetti
- Previous message: Lionel: "Re: TOMCAT/MYSQL/JSP"
- Next in thread: Carlo Luib-Finetti: "Re: Hibernate in JBoss: You cannot commit during a managed transaction!"
- Reply: Carlo Luib-Finetti: "Re: Hibernate in JBoss: You cannot commit during a managed transaction!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|