File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Remote Procedure Calls using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Remote Procedure Calls using Java" Watch "Remote Procedure Calls using Java" New topic
Author

Remote Procedure Calls using Java

Drepe Trooper
Greenhorn

Joined: Jun 06, 2001
Posts: 5
I am very new to distributed computing. Could someone please tell me how to call procedures(written in C/C++) on a remote server from a client through Java. I just need a starting point and I can pick it up from there. So any little help will be greatly appreciated.
Thanks.
Greg Mehlhose
Greenhorn

Joined: Jun 05, 2001
Posts: 16
The link to Suns Java Tutorial on JNI is a good place to start.
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html


Life is short, play hard.
Sergei Voropay
Ranch Hand

Joined: Feb 20, 2001
Posts: 31
Using JNI is only good for calling processes on the same machine. If you need to communicate to processes written in different languages (C/C++/Cobol/etc.) from Java programs and vice versa in distributed fashion, you should be using CORBA or possibly XML-RPC or even SOAP. So far, CORBA is probably the most robust approach to deal with this problem.
Greg Mehlhose
Greenhorn

Joined: Jun 05, 2001
Posts: 16
Ooops, I did not read your question. What Sergei said is correct, JNI only works on the local machine. You will need CORBA for a distributed call to your remote proceedure.
 
 
subject: Remote Procedure Calls using Java
 
Threads others viewed
Remote Procedure Calls using Java
FTP Implementation in Java
Questions about RMI-IIOP
C++ call to Java
Calling C RPC from Java
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture