Calling ready Java Code from C
1 posts in topic
Flat View  Flat View

Posted By:   Ahmed_Faizabadi
Posted On:   Thursday, September 20, 2001 08:54 AM

We are planning to develop a Java API (with embedded business logic in it ). But some of our legacy customer which wont be able to use a Java API (as they would have to write Java program) wants to have a C/Cobol interface for the API. Since we will be using another third party Java APIs in our API, we can only achive our requirements through Java . So we are planning to develop code in Java and then wrap in C ( may be through JNI callback ).
Is this practical? And whether there is any better approach for this? I will appreciate any comments/suggestions.


Re: Calling ready Java Code from C

Posted By:   Moritz_Moeller  
Posted On:   Saturday, October 6, 2001 05:15 PM

basically it is practical. your problem
might be that JNI is a machine-
dependent thing (some parts, at least).

i'd make a socket interface for it
because it is more machine-independant.
(java runs fine on every machine, the c client
in ansi-c with std. linux sockets runs
fine on all systems, too).

About | Sitemap | Contact