Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss application server threads

 
Prashanth naik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is JBOSS application server create any thread while running application with connecting database ?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prashanth naik wrote:Is JBOSS application server create any thread while running application with connecting database ?


Could you translate that into English, please?
 
Prashanth naik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How JBOSS application server will respond while executing the application?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, the JBoss application server will run a thread for each request that comes in from a browser or some other source. JBoss AS maintains a pool of worker threads, when a web request comes it it assigns an available thread to handle the request, once the request is finished the thread goes back into the pool. Note that if you sit a a browser, each request that you make will probably be handled by a different thread. As far as databases are concerned, if the request requires database interaction, that thread will perform the interaction (and on the database side there is a similar situation where the database had a pool of worker threads that handle incoming requests).

I hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic