About file

forum_thread

Connections pool

Hi! Does ObjectDB keeps and reuses a pool of connections as MySQL JDBC driver does?   ... 50. You can change it in the persistence.xml file , for example to maximum 100 connections: <property ... Maximum file size: 32 MB 0 ...

 
forum_thread

Enhancement API - NullPointerException

Hi! I am trying to use the Enhancement API from within my application like this: com.objectdb.Enhancer.enhance("my.package.Foo"); However, I get the following NullPointerException: ... Are you trying to enhance classes that are packed in a jar file? On the fly enhancement by calling ... That was indeed the case, the classes were in a JAR file. Thank you for the quick reply! ... Maximum file size: 32 MB 0 ...

 
release

2.6.5

... in the same transaction. Fixed temporary file management for very large transactions ( feature request #255 ). ... Added an option to disable temporary file deletion . Added support of using entity classes with ...

 
forum_thread

ObjectDB stability after power failure

I'm considering using ObjectDB in a system that is going to be running continuously without support instantly available for many years.  How stable is ObjectDB when it comes to power failures and unattended restarts?  Is database integrity maintained during such events?  I have seen database vendors perform 'kick the plug out' demonstrations of how their product will survive power failures.  Is ObjectDB suitably robust that it won't fail in such situations?    ... fully automatic recovery on power failure:  Recovery File and  Recording . If you try a 'kick the plug out' while ... Maximum file size: 32 MB 0 ...

 
forum_thread

Low performance when getting grove roots

Hi, I have a grove-like structure of objects, every objects referencing its parent. Root objects have null as the value of this parent reference. To find the roots I execute a query. If the number of objects in the tree is significant, this query takes almost forever, it seems ObjectDB loads all objects on the DB to test their parent field value. Id there a way to force ObjectDB to create an index for this field? Regards, Vladimir ... You can define indexes in an external XML file . More details would be needed in order to understand the empty results. Does it happen also with a new database file that is created after defining the new index? Using new indexes ...

 
forum_thread

Again about $temp from objectdb.conf

I am using the 2.4.5 distribution and I'd like to set up $temp to another folder than the system uses. In my web application I use a servlet to configure some values: public void init(ServletConfig config) throws ServletException {   super.init(config);   System.setProperty("objectdb.home",config.getInitParameter("OBJECT_DB_HOME")); // sets $objectdb   System.setProperty("objectdb.conf", config.getInitParameter("OBJECT_DB_CONFIG")); } ... directory that ObjectDB uses in the configuration file . By default ObjectDB uses  $temp/ObjectDB where $temp ... Maximum file size: 32 MB 0 ...

 
release

2.6.6

... in the same transaction. Fixed temporary file management for very large transactions ( feature request #255 ). ... Added an option to disable temporary file deletion . Added support of using entity classes with ...

 
forum_thread

ODB lost?

I'm new to ObjectDB. While debugging small programs in single-step mode in NetBeans, the ODB appears to get corrupted or lost if I don't invoke close on EntityManager. If I re-run my program and get a new EntityManager, the instance behaves as if the data that was persisting is somehow gone. I noticed in the file system, indeed, the .odb file is gone, but there are <name>_<v>.odb files where <name> is the name of my odb and <v> is apparently a version number. Is there any way to recover <name>.odb? ... was persisting is somehow gone. I noticed in the file system, indeed, the .odb file is gone, but there are <name>_<v>.odb files where <name> ... using a debugger. ObjectDB identifies a database file that was not closed by the existence of a special empty file (a file whose ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: ... javax.persistence.PersistenceException Failed to read from file ... by: com.objectdb.o.UserException: Failed to read from file ... 11:01 The database file that you uploaded is corrupted and you must repair it using the ObjectDB ...

 
release

2.6.4

... Added an option to disable temporary file deletion . Added support of using entity classes with ... #237 ). Fixed porting to Java 8 of database file with unexpected HashMap.Entry as a listed type. ...