Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote Procedure Calls using Java  RSS feed

 
Drepe Trooper
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sergei Voropay
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!