About EntityManagerFactory

release

2.5.5

... JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . ... Fixed a username/password issue in using EntityManagerFactory 's getMetamodel . Fixed a bug in ...

 
release

2.6.7

... database page objects reuse to release to be cleared on EntityManagerFactory close. Fixed a bug in hierarchy schema ... JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . ...

 
forum_thread

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

I have a Max OSX Lion and am running Netbeans 7.2 with Glassfish 3.1.2. I download the tutorial and run it. The moment I type something in the sign in block and click add, I get the following error trace: (Does anyone know a fix?)   ... Attempt to obtain a connection from a closed EntityManagerFactory at ... Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at ... Attempt to obtain a connection from a closed EntityManagerFactory at ... Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at ...

 
forum_thread

_UserException: Attempt to open a database file '...' that is currently in use

I have an application which runs correctly in NetbeansIDE but after building it, it won't just run sometime, the app stop responding to event at a particular point. I was able to reproduce this issue while running the jar file in command line and I got this exception which I have it stack attached here http://i.stack.imgur.com/IH8XZ.jpg ... that the database file is closed close() EntityManagerFactory's method Close the factory, releasing any resources ...

 
release

2.4.4

... Fixed a username/password issue in using EntityManagerFactory 's getMetamodel . Fixed a bug in ... EntityManager . Fixed a bug in concurrent EntityManagerFactory instantiation . Fixed a bug in ...

 
release

2.5.4

... JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . ... Fixed a username/password issue in using EntityManagerFactory 's getMetamodel . Fixed a bug in ...

 
release

2.6.5

... database page objects reuse to release to be cleared on EntityManagerFactory close. Fixed a bug in hierarchy schema ... JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . ...

 
forum_thread

Memory leak

Hi, We have a memory leak in our application which seems to be related with ObjectDB. Basically, we use single instance of EntityManager, which is opened on aplication initialization and closed when the user logs out, as well as EntityManagerFactory. We use em.clear() after every commit and after execution of query. Our classes are enhanced with ObjectDB enhancer. However, used memory is growing overtime until OutOfMemoryException is thrown on JBoss server. We use JBoss 7.1.1. and latest ObjectDB version. ... and closed when the user logs out, as well as EntityManagerFactory. We use em.clear() after every commit and after execution ... The heap dump indicates that 9 EntityManagerFactory instances have been created and have not been closed, ...

 
release

2.6.6

... database page objects reuse to release to be cleared on EntityManagerFactory close. Fixed a bug in hierarchy schema ... JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application.... // Obtain a database connection: EntityManagerFactory emf = ( EntityManagerFactory ) getServletContext ( ) . getAttribute ...