RMI is typically designed for interprocess communication between Java applications. If you need language-driven agnostic technology, the most popular currently are web services (SOAP or REST) or CORBA. But since the other service will run on a “hardware device”, they may be too heavy, in which case you might think about your own communication protocol, for example. based on TCP / IP connection.
source share