Hi Claude,
Yes, it's possible to use JNI with Servlets, but there are a few things you
must watch out for.
1. The DLL you create must be somewhere on the system classpath (such as in
C:\WINNT\SYSTEM32)
2. The java class which contains the ...native... declarations must be
outside the /servlets/ directory, but still on the servlet engine's
Classpath. (e.g. c:\jclasses) To set this you must consult your servlet
engine's documentation.
3. I am still having problems with the 'small differences - big
implications' factor. Things which work fine in a Java application often
give trouble when transported to a servlet.
I presume it's possible to write JNI DLLs in other languages than C/C++, but
never considered doing that. You could get away with knowing less C, but
then it depends on your application. How would I fare in France not knowing
French?
I hope that helps,
Mark Foley
EDS (Australia)
[EMAIL PROTECTED]
> -----Original Message-----
> From: Claude HONNORE [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, 7 October 1999 9:41
> To: [EMAIL PROTECTED]
> Subject: JNI and Servlets ..
>
> Bonjour ..
>
> I try JNI, with the example of Sun ( the famous HelloWorld !! ) and after
> many things I succeeded ...
> I use gcc ...
> But now I want to put a DLL Win32 in my Servlet like in an application ..,
> with the use of JNI ..
> Is it possible ??
> First I know well Java, Servlets etc ... but I don't know at all the
> language c ...
> is it necessary to know well c to do that ??
>
> Thanks
>
> C HONNORE
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html