This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Sockets in Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sockets in Servlet" Watch "Sockets in Servlet" New topic
Author

Sockets in Servlet

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a servlet that is designed to also handle requests from sockets. The servlets has a Vector for Socket clients and will process them accordingly. However, I think a ServerSocket needs to be running when the client Socket tries to connect to it. A servlet instance is not running in the server constantly, right? Can a Socket connection be handled in a servlet that has a ServerSocket?
Thanks.
 
Consider Paul's rocket mass heater.
 
subject: Sockets in Servlet
 
Similar Threads
socket
ServerSocket question
Doubt in ServerSocket and Socket
Winsock or related object...?
Socket on server side