This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Hi All, I have one java server running on a machine. And I have servlet running on another machine. I want to talk to the java server from the servlet using socket. Any special thing I have to be aware of? Any good site/tutorial/info available onilne? Thanks in advance
posted 13 years ago
Hi, no, no problems, just do it like any other Socket connection. The servlet can open a Socket() connection with your other Java-Server. The last one should create a ServlerSocket() object and accept() requests from your servlet.