About Data Set

forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: ... @ Unique private String word ; private Set<String> meanings ;   public Vifr_dic ( ) ... in a loop while the  EntityManager is open loads data and makes it available. A more conventional method is to define the ...

 
api-jdo

javax.jdo.JDOException

This is the root of all JDO Exceptions.(Exception of JDO)

 
forum_thread

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... & demo presentation which show problem with long data base open operation issue. Could you check from ObjectDb side which ... <connection port="6136" max="0" />   <data path="$objectdb/db" />   <!--   <replication ... <connection port="6136" max="0" />   <data path="$objectdb/db" />   <!--   <replication ...

 
api-jpa

javax.persistence.OptimisticLockException

Thrown by the persistence provider when an optimistic locking conflict occurs.(Exception of JPA)

 
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

Performance problem

Hi, we have a strange performance problem with ObjectDB 2.5.3_01 and JBoss 7.1.1. We have two ObjectDB databases on one ObjectDB server. Production database is running 5-10 times slower than test database. Their size and number of records are almost identical. When running production database in separate test environment its speed is very good. We did a performance analysis on our 2 linux servers one running JBOSS and other running ObjectDB. - CPU utilization of JBOSS server is max 5-10% (per core)... this behaviour gives aprox 10-13 s of refreshing a data table vs 2 second with test database. Does anybody have any idea ... HI only 4 clases are set to EAGER which are in relations to USER class. Our main question after ...

 
api-jpa

javax.persistence.PersistenceException

Thrown by the persistence provider when a problem occurs.(Exception of JPA)

 
api-jpa

javax.persistence.EntityExistsException

Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists.(Exception of JPA)

 
api-jpa

javax.persistence.PessimisticLockException

Thrown by the persistence provider when an pessimistic locking conflict occurs.(Exception of JPA)

 
issue

InternalException during producer/consumer scenario

Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a range of potentially complex criteria. 2) The number of objects produced can be potentially exceed available memory so can be held on disk within the objectdb file. ... objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a ... "next" object is selected based on a query with MaxResults set to 1 and LockMode set to PESSIMISTIC_WRITE. This results in the exceptions ...