I have a server written in C# and need to talk to it from Java 1.6. I need to connect to the server, maintain the connection, and send messages in both directions. The messages are an int (length of the message) and then an XML file.
What is the best way to do this? I know Java well but I’ve never done TCP from Java (have done it from C#). So I have no idea what the best way to do this is. Speed is not an issue and simplicity is useful.
thanks – dave
So you want to build a Java client using Socket API. It’s pretty simple to do.