How to call a remote external c++ program from a local java program?

local java program pass some parameters to a remote C++ program and get the result from that C program output.
[117 byte] By [victor_shaoa] at [2007-10-2 5:40:00]
# 1
Figure out how to do it from the command line. Then call that command via Runtime.exec().
DrClapa at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...
# 2
But that C program is on another machine, command line doesn't work.
victor_shaoa at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...
# 3
You could use a tcp/ip connection (e.g. with Sockets), and pass the parameters as Strings in the socketstream.
herrena at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...
# 4
or turn the c++ program into a corba service and invoke it from java in the usual way.%
duffymoa at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...
# 5
could you guys give me some links that have tutorials about how to do that things?
victor_shaoa at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...
# 6
http://www.google.co.uk/search?hl=en&q=tutorial+c%2B%2B+corba+service&btnG=Google+Search&meta=
RageMatrix36a at 2007-7-16 1:50:21 > top of Java-index,Java Essentials,Java Programming...