File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes JNI and Shared Libraries on UNIX questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI and Shared Libraries on UNIX questions" Watch "JNI and Shared Libraries on UNIX questions" New topic

JNI and Shared Libraries on UNIX questions

David Wright

Joined: Sep 18, 2003
Posts: 3
I have a query about how shared libraries work on
Unix. I have a C++ application that I am talking to
in Java using JNI (I have written a C shared library,
the JNI wrapper, to communicate with the application
shared libraries).
Now, what I do not understand is how shared libraries
work with virtual machines on Unix. In my environment,
there will be multiple virtual machines running on the
same HP box.
Will each virtual machine get its own copy of the application
shared libraries that I'm talking to with JNI? Will the
application shared library be loaded once in Unix, and
then each virtual machine communicates with the same
single shared library instance? Will each virtual machine
use the one shared library, but each get there own copy
of any global variables, if defined, within the sahred library?
Thanks in advance for any light, or links, into how shared
libraries work in the above scenario.
Kind regards
subject: JNI and Shared Libraries on UNIX questions
It's not a secret anymore!