JDBCTransaction « Transaction « JPA Q&A





1. Possible error in JDBCTransaction.commit ?    forum.hibernate.org

Thanks for posting it :-) I would have done that myself after waiting for initial reactions on the Spring developer list, but here we go... Of course, this is not necessarily a Hibernate bug but rather a semantic issue. Most callers will assume that if commit throws an exception that a database commit attempt did fail and that thus the database ...

2. joining an existing transaction with JDBCTransaction    forum.hibernate.org

I'd like to get JTA/EJB-like "join-existing-transaction" semantics in the simple case (sharing a single conn to the same DB, one-phase commit only) in Tomcat without having to dump more JARs in common/lib (e.g., JOTM) or migrate to Spring framework just yet. The default JDBCTransaction does not support this, and I was wondering if there is a solution floating around before reinventing ...

3. JDBCTransaction committing on rollback ?    forum.hibernate.org

Hi, I have a doubt about how Hibernate's JDBCTransaction works, and how handles "nested" transactions. Here's the code: Code: Transaction tx1 = session.beginTransaction(); // Start Block 1 User user = new User(); user.setName("blah"); // Name has unique constraint Account account = new Account(); account.setUser(user); Transaction tx2 = session.beginTransation(); session.save(user); session.save(account); tx2.commit(); // End Block 1 user.setLogin("duplicate"); // Violates unique constraint session.update(user); ...

4. ERROR JDBCTransaction:198 - Could not toggle autocommit    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp [b]Hibernate version: [/b] 3.0 [b]Mapping documents:[/b] [b]Code between sessionFactory.openSession() and session.close():[/b] //HibernateUtil static { try { // Create the SessionFactory from JNDI ; look in hibernate.cfg.xml Configuration cfg = new Configuration(); sessionFactory = cfg.configure().buildSessionFactory(); } catch (Throwable ex) { // Make sure you log the exception, as it might be swallowed ...

5. org.hibernate.transaction.JDBCTransaction :198    forum.hibernate.org

I am working with a simple web application using spring. I'm not sure if the problem I am having is a hibernate problem or a DBCP problem. Has anyone encountered this error? If so, how did you resolve it? Any help would be appreciated. Thanks. Here is the error: org.hibernate.transaction.JDBCTransaction :198 - Could not toggle autocommit java.sql.SQLException: Closed Connection at oracle.jdbc.driver.DatabaseError.throwSqlException ...

6. JDBCTransaction Syncronization behaviour differs from JTA    forum.hibernate.org

private void notifyLocalSynchsBeforeTransactionCompletion() { if (synchronizations!=null) { for ( int i=0; i

7. JDBCTransaction Syncronization behaviour differs from JTA    forum.hibernate.org

private void notifyLocalSynchsBeforeTransactionCompletion() { if (synchronizations!=null) { for ( int i=0; i