About transaction

manual

Obtaining a JPA Database Connection

Shows how to use Java/JPA to connect to the ObjectDB Object Database.... and delete should only be performed within an active transaction. Given an EntityManager ... Reference Page... , em, it is very easy to begin a transaction: em. getTransaction getTransaction() ... EntityTransaction's method Start a resource transaction. See JavaDoc Reference Page... ( ) ; ...

 
manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... EntityTransaction's method Start a resource transaction. See JavaDoc Reference Page... ( ) ; ... method Commit the current resource transaction, writing any unflushed changes to the database. See JavaDoc ... The new entity object is stored in the database when the transaction is committed. An IllegalArgumentException is thrown by ...

 
manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... (store, update, delete) must be performed within an active transaction. The EntityTransaction ... EntityTransaction's method Start a resource transaction. See JavaDoc Reference Page... ( ) ; ... method Commit the current resource transaction, writing any unflushed changes to the database. See JavaDoc ...

 
manual

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database.... it can simply be modified in memory from inside an active transaction: Employee employee = em. find find(entityClass, ... EntityTransaction's method Start a resource transaction. See JavaDoc Reference Page... ( ) ; ...

 
forum_thread

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  ... <persistence-unit name = "recordPU" transaction-type = "JTA" > <provider > ... Attempt to begin a new transaction when a transaction is active root cause ...

 
api-jdo

javax.jdo.Transaction

The JDO Transaction interface provides for initiation and completion of transactions under user control.(Interface of JDO)

 
issue

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

objectdb-2.6.9_01 NetBeans8.1+Glassfish4.1.1 Mac OS X Possibly related: How to Use a SF with extended Persistence Context? Test mini web app at: https://www.webel.com.au/downloads/objectdb/GreensoftObjectdbTestWebMini3683.2016-09-29.tgz ... exists Info: ExtProjectBuilder []: buildProject: em.transaction.isActive(true) Info: ExtRequestBean []: Created: ... Attempt to begin a new transaction when a transaction is active at ... { log_info ( $i, "em.transaction == null" ) ; } else { ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in a NetBeans Spring MVC JPA web application project.... . Component ; import org. springframework . transaction . annotation . Transactional ;   @Component public ... that modifies the database (such as persist ) by transaction begin and commit . The next step is ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project.... . Component ; import org. springframework . transaction . annotation . Transactional ;   @Component public ... that modifies the database (such as persist ) by transaction begin and commit . The next step is ...

 
manual

Database Transaction Replayer

Explains how to use the ObjectDB object database Replayer tool to restore recorded Java/JPA/JDO actions.... Backup files - with names of the form <transaction-id>.odb Recording files - with names of the form <transaction-id>.odr A backup file is an ordinary ObjectDB ...