wood burning stoves 2.0*
The moose likes Servlets and the fly likes Servlet and Socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet and Socket" Watch "Servlet and Socket" New topic
Author

Servlet and Socket

Niral Trivedi
Ranch Hand

Joined: Nov 26, 2001
Posts: 46
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
Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
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.

Dani
 
 
subject: Servlet and Socket
 
Similar Threads
download file from tomcat server
Problem in Socket communications between two different OS
how an Applet can make a socket on local port
Performance issue with weblogic 7.0
SSL Communication between Java and VC++