About EntityManager

release

2.6.7

... an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing content of a TreeMap ... error message for creating a query with a closed EntityManager ( issue #182 ). Version 2.4.6 ...

 
release

2.4.5

... ( issue #176 ). Fixed a problem of EntityManager auto closing. Fixed ArrayIndexOutOfBounds on ... file is empty ( issue #142 ). Removed EntityManager conflict checks in NO DETACH mode . Fixed a ...

 
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.... . getAttribute ( "emf" ) ; EntityManager em = emf. createEntityManager ( ) ; ... from the application scope attribute, and then an EntityManager (representing a database connection) is constructed. ...

 
forum_thread

multi thread application, id field sporadically null

We are testing objectDB with a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive sometimes an object from the database with the field that is declared as @Id having the value null (what is not correct, we checked that with the explorer). The class is declared like this: ... ... a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive ... that has no id yet. You may want to check if using a new EntityManager with an empty cache makes a difference, as well as disabling ...

 
forum_thread

Database is locked when in use

I am oberving that when i reading anything from odbfiles, i am not allowed to copy and paste the odb files in the file system but the same i was able to do it in object db 1.0. We supprt export functionality and if i am not allowed to copy it in objectdb 2.x, then its a problem for us :-( Do you have any settings or other way to handle this? ... through the online backup web page, it is mentioned for EntityManager. How do i achieve the same for PersistenceManager as I am ... You should be able to cast PersistenceManager to EntityManager . In ObjectDB the same object is an instance of both ...

 
forum_thread

Spring + Maven + persitence.xml

Hi, I tested ObjectDB embedded and it is really fast! Everything worked out of the box. Maven: <dependency>    <groupId>com.objectdb</groupId>    <artifactId>objectdb</artifactId>    <version>2.4.3</version>   </dependency> Persistence.xml ... Could not open JPA EntityManager for transaction; nested exception is ... Could not open JPA EntityManager for transaction; nested exception is ...

 
release

2.6.5

... an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing content of a TreeMap ... error message for creating a query with a closed EntityManager ( issue #182 ). Version 2.4.6 ...

 
release

2.6.6

... an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing content of a TreeMap ... error message for creating a query with a closed EntityManager ( issue #182 ). Version 2.4.6 ...

 
issue

huge heap usage

we are using objectdb 2.7.2_6. At a custumer we have huge problems with the memory consumption (see the heap dump attached). The database size is pretty small (1.4 GByte). Any idea ? ... shows one EntityManagerFactory with 105,689  EntityManager instances. This could be caused by creating  EntityManager instances and not closing them. ...

 
forum_thread

connection pooling

how do you handle connection pooling?  I don't understand how to open and close connection, or reconnect. I've referenced the manual here, but where does this go:   The <connection> element   <connection port="6136" max="100" /> The <connection> element specifies how clients can connect to the server: ... pool of connections and reuses them when it creates new EntityManager instances. See this manual page for more information on ...  (which manages the connection pool) and EntityManager (which represents a connection). By default the maximum ...