I’m developing a Java app that will run as two processes that need to communicate. I want to avoid pipes, sockets and things like that. I’m looking for something like COM, something that will allow me to share an object between two processes (I know that it may be more involved than just “sharing”, for example with COM this requires marshalling and RPC).
Any suggestions?
I don’t know much about com, but in Java world rmi is the built-in first choice when communicating between two JVMs. In principle it’s an object-oriented implementation of rpc. Underneath it uses TCP/IP and Java serialization + jndi for discovery.