This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Access C API from JSP" Watch "Access C API from JSP" New topic

Access C API from JSP

Michael Kalkavouras

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,
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 for some more information on JNI.
Also, contact the clarify people. They may already have created such a product.
Brent Worden

Brent Worden
Michael Kalkavouras

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.
Consider Paul's rocket mass heater.
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