Search code examples
javasocketssocket.ioserversocket

Possibility of calling remote methods via sockets in java?


Is it possible to call remote method and get return value of the method through sockets in java without rmi client/server implementation?


Solution

  • Sure, if you design the protocol and infrastructure to marshal/unmarshal the call, arguments and return value. Anything is possible, the only question is how much work you want to do reinventing existing wheels.