Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

threads on servlet?  RSS feed

 
yoga nandiwardhana
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way to create threads on a servlet? i need them to separate the incoming/outgoing messages to a client. i'm trying to use my servlet as a gateway for communicating between to clients, is that possible?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally speaking a servlet can do anything any Java application can do, including creating Threads. However, I think you better get more aquainted with the basic environment that servlets operate in - you may find that your application doesn't need anything fancy.
Have you installed a servlet engine such as Tomcat and studied the operation of the examples?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!