On Mon, 18 Jun 2001, [Qari Qasim] wrote:

| Hi
| I was searching for some examples that show Servlets accessing native
| methods (in order to use C++ library). I searching for some time I realised
| that there are hundreds of examples which show standalone java applications
| accessing C++ library, but could not find examples that showed servlets
| using native methods.
|
| Has anyone got a sample code that I can have a look at.
|
| Also what are the prerequisites for using native methods with servlets. For
| example do I need to change anything on Tomcat 3.2.1
| regards

This isn't exactly an answer, but I'm just curious why it would be much
different from "normal" Java code? Servlets are only Java, but invoked by
method doGet(..) or doPost(..) instead of "public static void main(..)",
kind of.. Do your initialization stuff (like load your libs) in the init()
method of the Servlet, and maybe take care of the "destruction" of your
libs in destroy().


--
Mvh,
Endre

___________________________________________________________________________
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

Reply via email to