ObjectDB ObjectDB

Again about $temp from objectdb.conf

#1

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"));
}

Well, my question is: what would be the name of the property?

Thank you,

 

Sandu

edit
delete
#2

You can set the temporary directory that ObjectDB uses in the configuration file.

By default ObjectDB uses $temp/ObjectDB where $temp is:

    System.getProperty("java.io.tmpdir")

You can also change the "java.io.tmpdir" system property, but that will change the temporary directory for the entire JVM, not just for ObjectDB.

 

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.