tags:

views:

102

answers:

1

Hi,

i used .dll in JSP.

In a first Jsp program i did a code to forward another JSP page.

which again uses the same dll

So my question is does that forwarded page again loads the

library?

Or it loaded once?

i code System.loadlibrary("lib") in a separate class

and created a object for that class in first JSP page and also in the forwarded JSP page.

Suppose if it is loading again ! how to make the .dll should be loaded once?

I am using apache tomcat web server 6.0.20.

Thanks in advance

krishna

A: 

System.loadLibrary() uses Runtime.loadLibrary(); the documentation for that function says:

If this method is called more than once with the same library name, the second and subsequent calls are ignored.

So as long as your library is only installed as one name, you won't have this problem.

Chris Boyle