About Transaction

forum_thread

Empty temporary dat files in the temp folder

Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ‘only’ 2GB free memory on disc drive C:/ because during using our Product the %temp%/objectdb_123... folder growth up to 2GB. And then we run into some following errors due to lack of memory. ... For each user action we create an EntityManager, begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors rollback the transaction and closing the EntityManager. In some scenarios we use ...

 
api-jdo

getRestoreValues()

Return the current value of the restoreValues property.(Method of javax.jdo.Transaction)

 
api-jpa

joinTransaction()

Indicate to the entity manager that a JTA transaction is active.(Method of javax.persistence.EntityManager)

 
forum_thread

Issue with orphanRemoval and multiple EntityManagers

Hi, We have a problem where our database size grows over time more than expected. We've traced it down to the following issue: ... set to true. I use a new EntityManager for each transaction (which normally happens in multithreaded application). When I create a child entity in one transaction and then remove it in another transaction, the database still contains 1 child entity. If I remove it and add ...

 
api-jdo

javax.jdo.listener.DirtyLifecycleListener

This interface is implemented by listeners to be notified of dirty events.(Interface of JDO)

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in a NetBeans Spring MVC JPA web application project.... > </bean >   <!-- Add Transaction support --> <bean id = "myTxManager" class ... /> </bean >   <!-- Use @Transaction annotations for managing transactions --> <tx:annotation-driven transaction-manager = "myTxManager" />   <!-- View ...

 
api-jpa

javax.persistence.LockTimeoutException

Thrown by the persistence provider when an pessimistic locking conflict occurs that does not result in transaction rollback.(Exception of JPA)

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... with this problem. are you saying that, for every transaction, I need to handle the optimistic lock by manually refreshing each ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project.... > </bean >   <!-- Add Transaction support --> <bean id = "myTxManager" class ... /> </bean >   <!-- Use @Transaction annotations for managing transactions --> <tx:annotation-driven transaction-manager = "myTxManager" />   <!-- View ...

 
api-jdo

jdoGetObjectId()

Return a copy of the JDO identity associated with this instance.(Method of javax.jdo.spi.PersistenceCapable)