Calling C function within a Servlet

Discussions

Web tier: servlets, JSP, Web frameworks: Calling C function within a Servlet

  1. Calling C function within a Servlet (4 messages)

    I have a legacy search function which was implemented in 'C' language. Now I have to use this function in one of my servlets. I will be passing some parameters to the search engine which will in turn return the search results in structures. How can I integrate these two?

    Threaded Messages (4)

  2. Calling C function within a Servlet[ Go to top ]

    JNI
  3. Java Native Interface[ Go to top ]

    JNI

    http://java.sun.com/docs/books/tutorial/native1.1/
  4. Calling C function within a Servlet[ Go to top ]

    Thanks for the suggestions.
  5. Calling C function within a Servlet[ Go to top ]

    If I use JNI, can I pass 'C' structure to the java servlet?. Is there any info on accessing 'C' structures in java? Please help!