I need to create a Java application (App A) that listens on a TCP port, accepts data being sent from PHP or C++ applications, does some processing and sends the data back, from App A to PHP / C++ applications.
What is the most efficient way to pack data to be send from C++/PHP to Java and back ?
What if all applications are running on same machine ? is there a non-TCP method ?
Thank you very much.