Question

I went across all the links on java Inter Process Communication, but I couldn't get an exact answer. I am on my way to write a java service which I want to communicate with a service running on my system. The service may be C, C++, or a service running on a hardware device. Which is the best way? Is it possible to use RMI in this case? If yes how can I implement that?

Was it helpful?

Solution 2

You can go through online tutorials on CORBA with JAVA technologies. You can also refer oracle documentation for the same

Refer http://docs.oracle.com/javase/1.4.2/docs/guide/idl/jidlExample.html

OTHER TIPS

RMI is generally designed for interprocess communication between Java applications. If you need language-agnostic technology, currently the most popular are webservices (SOAP or REST based) or CORBA. But as the other service is going to work on "hardware device" they may be too heavyweight in which case you could think of your own communication protocol eg. based on TCP/IP connection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top