About config

manual

Chapter 6 - Configuration

Explains how to configure and tune ObjectDB, the fast Java object database for JPA/JDO. The ObjectDB configuration file contains one <objectdb> root element with seven subelements: <objectdb > <general > ... </general > <database > ... </database > ...

 
forum_thread

Replication error - parsing objectdb config

I'm trying to replicate a database using the following config: <server>   <connection port="6136" max="100" />   <data path="$objectdb/db-files" />   <replication url="objectdb://localhost:6126/DEV1/NewMessagePipe.odb;user=admin;password=admin" /> </server> ... I'm trying to replicate a database using the following config: <server>   <connection port="6136" ... exception below. Is there something wrong with my config? Caused by: com.objectdb.o.UserException: Failed to validate xml ...

 
forum_thread

odb files and config file

Hi, I used the tutorial (http://www.objectdb.com/tutorial/jpa/eclipse/project) to use ObjectDB in my maven project. After that there was a db folder in src/main/java/webapp/WEB-INF/. But there were no obd files in it. I'm getting my EntityManager by doing this: EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/account.odb"); ... ) that you can define the odb home in a config file. But where to I find the config file in my project? edit ...

 
forum_thread

JPA Level 2 Cache - app config

Hello! I would like to use selective cache for JPA Level 2 (cached in EntityManagerFactory) in one app, but no cache at all in another app. Both will be connected to the same ObjectDB server & db. Where and how can I set this to work for ObjectDB? http://www.objectdb.com/java/jpa/setting/entities#The_cache_element_ specifies only amount of MB used for Level 2 cache, but the config is at server level, yet I need it at application level. ... only amount of MB used for Level 2 cache, but the config is at server level, yet I need it at application level . This ... Thanks a lot. I saw that part which specified just config in server and I got "scared", that I didn't search further. ...

 
issue

config file for embedded database

Hi, I'm going back to embedded mode after some time with client/server mode. Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the explorer - still need a way to view (view only) an open embedded database.   ... Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the ...

 
forum_thread

config file for embedded database

Hi, I'm going back to embedded mode after some time with client/server mode. Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the explorer - still need a way to view (view only) an open embedded database. ... Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the ...

 
forum_thread

Entity Management Config questions

Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entities  : <cache ref="weak" level2="0mb" /> The <cache> element specifies settings of the two cache mechanisms for entities:... Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entities : ...

 
forum_thread

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity Listeners. How to do ? Here my init code: ... How to do ? Here my init code: Properties config = new Properties ( ) ; config. put ( "javax.persistence.provider" , "com.objectdb.jpa.Provider" ) ; config. put ( "javax.persistence.jdbc.url" , ...

 
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")); } ... public void init ( ServletConfig config ) throws ServletException { super . init ( config ) ; System. setProperty ( "objectdb.home" ...

 
forum_thread

Drop in Client/server mode not working

Hi, can't seem to get drop to work in c/s mode: version: objectdb-2.3.5_04 config: <extensions drop="tmp" /> url: 'objectdb://localhost/testStorage1.tmp;drop;user=admin;password=admin'   suggestions? David   ... c/s mode: version : objectdb-2.3.5_04 config : <extensions drop="tmp" /> url : ...