This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

socket

 
Sarada Bhasker
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can my servlet have a serversocket in that?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A ServerSocket in a servlet class would not be a good idea since the Thread executing the accept() method would just sit there. You can certainly have a servlet communicate with another Java program that is running a ServerSocket.
Bill
 
Sarada Bhasker
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. How can I make the servlet communicate with program running serversocket? Can you show an eg? Do I need to have a socket connection for the servlet and pipe it to client?
Thanks in advance

[This message has been edited by Sarada Bhasker (edited November 27, 2000).]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic