multiple jni copies

simple question here.. can someone validate my 2 assumptions below?

1. I assume that I can have 2 copies of a java app (2 VMs) accessing the same dll, but that it would be the same instance of the dll? so if one java app set a variable in the dll, the other could access it?

Note: I actually don't want that to happen... I would like each java app to have their own instance of the dll.

2. My second assumption is that for this to work, I need to rename the dll (i.e. have 2 seperate copies of the dll) ? If that is the case, I asom Assume they could have the same name if they were in different directories?

Thoughts?

[651 byte] By [dingfeldera] at [2007-10-3 0:56:58]
# 1
Each running Java app have its own DLL "instance".So if one Java app set a variable in the DLL, the other could NOT access it.
jfbrierea at 2007-7-14 17:52:32 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
excellent! thanks jfbriere :)
dingfeldera at 2007-7-14 17:52:32 > top of Java-index,Java HotSpot Virtual Machine,Specifications...