File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sockets in Servlet" Watch "Sockets in Servlet" New topic

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?
I agree. Here's the link:
subject: Sockets in Servlet
It's not a secret anymore!