About URL

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

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

 
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 = "";     ...

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

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

 
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

Is there an update on running ObjectDB purely in-memory?

Hi, I know that this has been asked, but the last time seems to be two years ago, so I'd like to know whether there is a change or an outlook regarding the topic: Is it possible, or planned, to run ObjectDB purely in-memory, without a any file on disk? Note that "file on RAM disk", which was proposed in the past, is not an option for the application I have in mind. It would need to be true in-memory mode, as supported by SQL databases like H2 or SQLite. Thanks, David ... </database > Any database url or path with one of these specified suffixes will be handled as a memory ...

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

 
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

package.jdo validation error (Connection timed out)

HI, I am trying to read the odb file generated using objectdb 1.0. Using converter.jar, i converered to new objectDB file and then was trying to read the file and i got the following exception. com.objectdb.o._JdoUserException: Failed to validate xml file <somePath>\RTDLogger.jar#package.jdo: Connection timed out: connect NestedThrowables: java.net.ConnectException: Connection timed out: connect ... otherwise the XML parser may try accessing that url (and it will probably fail if you are behind a firewall). ...