HI,
I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file.
I am using JDO and setting the persistenceManager as follow
properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF");
properties.setProperty("javax.jdo.option.ConnectionURL", fileName.odb);
pmf = JDOHelper.getPersistenceManagerFactory(properties), JDOHelper.class.getClassLoader());
I read in the ObjectDB website that we can change the temp directory using the following conf file
<general> <temp path="$temp/ObjectDB" threshold="64mb" /> <network inactivity-timeout="0" /> <log path="$objectdb/log/" max="8mb" stdout="false" stderr="false" /> <log-archive path="$objectdb/log/archive/" retain="90" /> <logger name="*" level="info" /> </general>
But can you please let me know, if i dont want to use the conf file, how can i set the temp directory using my java class e.g setting through system property or ..... I m using fileName.odb file to store the objects and reading objects from the fileName.odb. When pm.currentTransaction().begin(); hits it creates a .$fileName.obd$ file in the same directory where fileName.odb is located. But i want to set the tempority folder location so that $fileName.obd$ will be created in some different folder. Please let me know the solution.
Thanks