About EntityManagerFactory

forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... , "admin" ) ; EntityManagerFactory emf = Persistence . createEntityManagerFactory ...

 
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 ...

 
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, ...

 
tutorial

Step 4: Add a Servlet Class

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

 
release

2.4.3

... 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.6.4

... 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 . ...

 
release

2.4.1

... 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.4.2

... 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 ...

 
issue

stress test -> com.objectdb.o.InternalException: null

I am running a stress test with 2 users, each making a request to the JSON API (which uses as storage ObjectDB) each 50 milliseconds. An API call might have between 1-4 db calls, but they are relatively light, and the db has just a few MB at the moment. After a few minutes I got this exception. If I decrease the load, it doesn't happen. If I increase it, I get it very often. Any solution/fix? A sample project is very hard, if not impossible, to create, because it uses all the system. ... ) throws Exception {   EntityManagerFactory emf = Persistence . ...