Search code examples
javaserializationserial-communication

java library: socket communication between 2 or more java applications


I'm looking for a java library that help me send information between 2 or more running java applications that are on the same or different machines(different networks).

I'm looking for a TCP socket communication.

I know I can implement my own format, but I'm looking for something already done.

I'm also looking for something simple that is not resource hungry.

Thanks


Solution

  • java.net.Socket plus java.io.DataInputStream and java.io.DataOutputStream.

    RMI.

    RMI/IIOP.

    XML-RPC.

    JAXB or any other implementation of SOAP.

    And that's not exhaustive.