ObjectDB ObjectDB

Internal Website Search

1-10 of 99 resultsRefresh

Rollback after commit fail

().rollback(); } Thread 2: try{ EntityManager em = emf.createEntityManager(); em ... ().commit(); } catch(...){ em.getTransaction().rollback(); } Parallel running threads caused ... , but rollback fails with: javax.persistence.TransactionRequiredException Attempt to rollback a transaction

Failed to commit transaction: Attempt to commit a rollback only transaction

to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271 ... an active transaction as rollback only. In that case - you can only close the transaction with rollback ... .getRollbackOnly()) currentTx.rollback() else currentTx.commit() but it disturbs me that I'm not setting

Rollback of several closed transactions

Hello, we use the ObjectDB as embedded database. Sometimes we work with big data and we are forced to split a transaction into several transactions. But then we need actually a rollback for several transactions. Is there any possibility in the ObjectDB to rollback several closed transactions? btc

Felix, rollback exception, error 613

Felix, rollback exception, error 613


Method javax.persistence.EntityTransaction void rollback() Roll back the current resource transaction. Throws: IllegalStateException - if isActive() is false PersistenceException - if an unexpected error condition is encountered Since: JPA 1.0

Database Connection using JPA

(); } finally { if (em.getTransaction().isActive()) em.getTransaction().rollback(); } A transaction is started by a call to begin and ended by a call to either commit or rollback ... and are kept in memory until the transaction is ended. If the transaction is ended with a rollback

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.


Method javax.jdo.Transaction void rollback() Roll back the current transaction. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is not active. Since: JDO 1.0

[ODB1] Chapter 5 - JDO Connections

.currentTransaction().isActive()) pm.currentTransaction().rollback(); if (!pm.isClosed()) pm ... .currentTransaction().rollback(); if (!pm.isClosed()) pm.close ... transactions. A transaction is started by a call to begin() and ended by a call to commit() or rollback

[ODB1] Chapter 2 - A Quick Tour

()) 52 pm.currentTransaction().rollback(); 53 if (!pm.isClosed ... the database. Ending the transaction with rollback() discards all the changes done during its activity

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support