This is a complete WAG, but the fact that a JNI is used to call a DLL
doesn't change the loading requirements for accessing the DLL, whether its
from a bean or a JSP..

As far as I know, there isn't any mention about JNI within the Servlet
specs, etc, as they're not particularly portable.

But, minimally, DLLs are located by the system by traversing PATH specified
in your environment. So, you'll need to update your PATH variable
appropriately.

I wouldn't suggest including any DLLs in your WAR file, as you lose the
certainty of where the .DLL may go (containers choice). Plus, it's not a
redeployable resource anyway, so if the container tries to redeploy your
WAR, it may have problems with the DLL.

I would place the DLLs in some place known to you (i.e. documented), update
your PATH variable appropriately to reference that location, and all should
be well.

Mind you, this is coming from a Unix geek who can not spell DLL and who has
no direct experience with JNI. This is mostly a "common sense" post.

Let us know if it works!

Regards,

Will Hartung
([EMAIL PROTECTED])

----- Original Message -----
From: "Saroj Kumar Choudhury (I01109)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 1:37 PM
Subject: JNI in JSP


>
> Hi,
>  Please let me know how to use JNI in JSP. I am able to use it in Ordinary
> Java files but not in JSP. I created a bean which invokes the C++ function
> that I am using in my JSP. The problem with me is that I do not know where
> to keep the class,dll file ?
>  Thanks in anticipation
> Saroj
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to