Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

web servers, web containers and multithreading  RSS feed

 
mat buckland
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a web service that will be deployed in Glassfish or Jetty. I'd like to clarify how the threading works.

Do web containers like Jetty automatically create a new thread per connection, which then executes the webmethod or do i have to manage the threading myself?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each incoming request is executed in its own thread - the container does that automatically.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!