wood burning stoves 2.0*
The moose likes Servlets and the fly likes Access C API from JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Access C API from JSP" Watch "Access C API from JSP" New topic
Author

Access C API from JSP

Michael Kalkavouras
Greenhorn

Joined: Oct 24, 2000
Posts: 5
Dear all,
I am currently using JSP with WebLogic Server 5.1.0. I need a module (JavaBean) that accesses the C/C++ API of the clarify product. Does anyone have any idea how to do that? Is there any way of directly accessing the API? Do I need to write a C program that accesses that API and call that from the JSP? I've heard something about using Corba to access the C API. Are there any relevant examples I could look at somewhere you know? What is the best, and more robust way of doing it?
Kind Regards,
Michael
Brent Worden
Ranch Hand

Joined: Nov 26, 2001
Posts: 50
What you'll need to do is create a JNI compatible shared library that calls the clarify API.
Check out http://java.sun.com/products/jdk/faq/jnifaq.html for some more information on JNI.
Also, contact the clarify people. They may already have created such a product.
------------------
Brent Worden
http://www.Brent.Worden.org/


Brent Worden
Michael Kalkavouras
Greenhorn

Joined: Oct 24, 2000
Posts: 5
Thanks a lot for the reply.
This is definetely what I was looking for. I had a quick look at the JNI tutorial and it is what I need.
Cheers,
Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access C API from JSP
 
Similar Threads
access methods in dll file from JAVA code
can dependency between Java & JSP code be displayed visually?
detect the last IP address that accesses a page
Security Mechanism suggestion?
problem while keeping scope as session