About config

forum_thread

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. ... Is there a system property, persistence.xml property, or config file property I can use to set to force ObjectDB to always delete or ...

 
issue

Threaded Test - Failed to commit transaction: Unexpected internal exception

Hi I'm trying to create a simple producer-consumer queue scenario but am getting the followin exception: ... I'm running with v2.2.7_01 and the default objectDb config. I've limited the test to a jvm size of 1gb (-Xms1g -Xmx1g) ... problem somewhere, either with my code, my use of objectdb config settings, or objectdb itself? Thanks for your help! ...

 
forum_thread

LDAP and ObjectDB

Hello, Is there any advantage in using LDAP with ObjectDB? I notice that I would still have to query the config for the credential, as well as query LDAP, a doubling of the work.   Thanks ... I notice that I would still have to query the config for the credential, as well as query LDAP, a doubling of the work. ...

 
forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... and the "$objectdb/work" directory which i had put in the config file, and created lockfiles in both (i don't know what for: ...

 
forum_thread

Externalising persistence.xml properties in Glassfish?

Hi, ... </persistence > Then in your server config you define every property as an argument to the JVM like this ...

 
forum_thread

Enhancer failure: Failed to process class file of type

Stack trace below:   ... with 2.7.2_02 and the following enhancement config in gradle works: task enhance ( type : JavaExec ...

 
forum_thread

Error using query with MAX() function

I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. ... function if ( ( count % config. getUpdateFreq ( ) ) == 0 ) ... the manual. if ( ( count % config. getUpdateFreq ( ) ) == 0 ) ...

 
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".   ... ) System. out . println ( "objectdb.config FOUND" ) ; else System. out . println ( "objectdb.config NOT found" ) ; Path logDirectory = ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... so far the following works for me: 1) standard config file with these changes: <locking version-check = ...

 
forum_thread

Failed to commit transaction: Attempt to commit a rollback only transaction

Anyone know what this means?? Suddenly cropped up.   Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source) ... 1: problem persists if optimistic locking set to true in config file update 2: problem goes away with this check: ...