Opening a socket on a separate JVM
posted 15 years ago
I am currently writing a secure server program, which listens for client connections and starts a different JVM using the Runtime.exec() to start a different server which monitors jobs started by the first server executing the client's request. The second JVM simple creates an Object which is also a server, but when it tries to open the socket to listen, it fails and gives me a SocketException. I don't understand why this error has occured, I checked the port, to make sure its free and it is. Also, when I create the same Object within the first JVM it works perfectly it listens and connects to client connections. Can any one help me with this problem? If you need for information on this, please feel free to ask.