Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > running jni in a servlet

Reply
Thread Tools

running jni in a servlet

 
 
Astrid Wagner
Guest
Posts: n/a
 
      07-07-2003
Hi,

Has anyone tried to call a jni method in a servlet and if yes:
what infrastructure are you using (web server, servlet engine ..) and
what experience did you make?

Thanks.

Astrid


 
Reply With Quote
 
 
 
 
Joseph Millar
Guest
Posts: n/a
 
      07-08-2003
On Mon, 07 Jul 2003 12:13:32 +0200, Astrid Wagner <(E-Mail Removed)>
wrote:
> Has anyone tried to call a jni method in a servlet and if yes:
> what infrastructure are you using (web server, servlet engine ..) and
> what experience did you make?


I've used both Tomcat and Lotus Domino to run servlets which access
native methods. Both work, but you have to be careful of the
security environment. Access to native methods are usually tightly
control because then you have full access to the underlying OS and
hardware and in the wrong hands that can be a bad thing, from crashes
to actual destructive behavior (whether inadvertant or not).

In general I would suggest staying away for native methods used as
part of a particular servlet unless you absolutely have to. And if
you do, isolate the methods in a package that is installed as part
of the JVM core classes.

JNI is a powerful tool, and in the right situations, extremely
useful, but it should only be used with a very good understanding of
the issues involved.

--Joe
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening new child window - Running servlet (JSP and Servlet) agapitolw@yahoo.es Java 4 08-27-2007 12:57 PM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:01 AM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Porting JNI Windows under JNI LINUX + Wine ? Pasturel Jean-Louis Java 5 03-03-2004 07:50 PM
IBM's JNI fails where Sun's JNI works Alex Hunsley Java 4 11-04-2003 10:34 AM



Advertisments