About URL

issue

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

Exception in thread "main" [ObjectDB 2.6.0_04] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.7.0_51 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com.objectdb.o.SEM.c(SEM.java:77) at com.objectdb.o.SEC.g(SEC.java:196) at com.objectdb.o.SEC.c(SEC.java:84)...     @Unique     String url = "";     ...

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... = "$objectdb/db" /> <!-- <replication url="objectdb://localhost/test.odb;user=admin;password=admin" /> --> ...

 
tutorial

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class:... <property name = "javax.persistence.jdbc.url" value = "$objectdb/db/guests.odb" /> <property ... be used as a JPA provider with the specified database url. The next step is adding an EJB Session Bean that will manage ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in an Eclipse Spring MVC web application project.... <property name = "javax.persistence.jdbc.url" value = "$objectdb/db/guests.odb" /> <property ... be used as a JPA provider with the specified database url. The next step is adding a Spring  DAO Component class that ...

 
forum_thread

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find anything in the JPA 2.0 spec http://download.oracle.com/auth/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells me what to expect. ... purgeObjectDb method instead of the new ;drop url parameter ? To paste code in the forum, first select the ...

 
forum_thread

Bulk Delete and Update - best practice?

The attached test creates 1000 large objects and then attempts to delete them all in one go using a DELETE statement. I'm trying to run with -Xmx512m but the test runs out of memory during the delete. The attachment also contains an update test which has similar memory problems. I'm running both tests with the default objectdb.conf. In general is an UPDATE/DELETE statement the most efficient way to update/remove a large number of objects? ... would be more efficient. drop in the connection url should work also in server mode if the database is not in use by another ...

 
forum_thread

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

Hi,  Object are not being persisted when ObjectDB and another db is used in the same application (through spring) with different tx managers, please find an example of this below. Any help is greatly appreciate as we are currently evaluating ObjectDB to use in our new enterprise application and we need to decide if we are going to purchase it very soon. Many Thanks   Persistence.xml ... <property name = "javax.persistence.jdbc.url" value = "$objectdb/db/test.odb" / > <property name ... / > <property name = "url" value = "jdbc:mysql://localhost:3306/streaming_test" / ...

 
forum_thread

Can I Disable the Creation of the "log" Directory?

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   ... inactivity - timeout = "0" / > <url - history size = "0" user = "false" password = "false" ...

 
forum_thread

Change path for urls2.xml file

I am using ObjectDB embedded and have set my home path in relation to the JAR, but running the program still creates .objectdb/urls2.xml in my system user folder.  Is there a setting to change the creation path of this file?  I assumed it would be in relation to the home path, similar to the db and log files. ... 0 as the maximum history list size: <url-history size = "0" user = "true" password = "true" /> The url history is used to enable opening recent database files in the Explorer. ...

 
manual

Obtaining a JPA Database Connection

Shows how to use Java/JPA to connect to the ObjectDB Object Database.... .objectdb is considered by ObjectDB to be a database url rather than a persistence unit name. The $objectdb special prefix ...