Jari Häkkinen wrote:
> 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?

I am not sure that I understand why using one directory would be better 
than the other. Wouldn't the name clash still happen if 
/path/to/tomcat/temp was used instead of /tmp?

As far as I know the core is not using a temporary directory for 
anything. If it needed to, the core would probably also use the 
java.io.tmpdir directory.

/Nicklas


-------------------------------------------------------------------------
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