Extending appserver 8 ? usage of jni dll.

I'm trying to figure out how to extend appServer 8

I have 2 <app>.dll's which I use to interface to native code.

I've referenced the .dll's in the studio2 project.

the war file seems to export

Studio2 compiles and deploys but ...

So far so good.

But now I getting curious ... how to correctly trick appserver 8 into loading the dll.

Having them in the project does not do the trick.

I've manually installed them into appserver\lib .

But this does not seem to always be the right case ...

(I really cannot verify since I've had some real trouble with app server 8 and creator 2 in the past.)

I've always managed to find the place where to load... but only by trial and error.

What is the right procedure ?

Erik

[817 byte] By [esj@datavisor.dk] at [2007-11-26 7:16:30]
# 1

The JVM looks for libraries in the paths specified in "java.library.path" property. The default content of this property is usually formed from PATH and/or LD_LIBRARY_PATH environment variables of the JVM process.

For various ways to set the property you can also check:

http://forum.java.sun.com/thread.jspa?threadID=627890

BTW, there is an issue with multiple class loaders in the same JVM attempting to load the same library - only one (first) will succeed. See for example :

http://forum.java.sun.com/thread.jspa?threadID=633985

ymaillvv at 2007-7-6 18:53:01 > top of Java-index,Development Tools,Java Tools...
# 2
Here is my little experiment;-) http://blogs.sun.com/roller/page/marcoscorner?entry=creator_applications_and_na tive_codeThanks,-- Marco
mw46 at 2007-7-6 18:53:01 > top of Java-index,Development Tools,Java Tools...