Many plug-ins acquire a working directory with code similar to the 
sample attached below. This is mostly safe but when running more than 
one BASE server on a host there is a potential clash. A plugin running 
in the different BASEs may allocate the same temporary directory (since 
jobids may match).

The java.io.tmpdir returns /tmp on linux irrespective what 
CATALINA_TMPDIR is set to. /tmp is the Java default on linux and running 
tomcat CATALINA_TMPDIR is set properly by default. This means that the 
tmp for running tomcat server is /path/to/tomcat/temp as expected.

So, the BASEcore is proably using the CATALINA_TMPDIR whereas the 
plugins are using the system default. This must be an effect of how 
plugins are started by the core. Is it possible to pass the tmp 
directory to the plug-in running environment?


Jari


protected java.io.File getExecDirectory()
{
   if (execDirectory == null) {
     execDirectory = new java.io.File
        (System.getProperty("java.io.tmpdir") + java.io.File.separator +
        getAbout().getName() + java.io.File.separator + job.getId());
     execDirectory.mkdirs();
   }
   return execDirectory;
}


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel

Reply via email to