Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Application Server implementing Multi Thread !!  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Java Geeks

Does anybody know on how the Application Server like JBoss, Weblogic, Websphere implements MultiThreading ?
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, exactly, do you mean? They implement multi-threading by using multiple threads (I know, that's not helpful, but just to illustrate that the question is not clear).
 
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a J2EE world you should not be creating threads. The server will create threads and maintain pools on your be half though you can configure these pools.

Most (note most not all) app server code should look single threaded to the untrained eye and not worry about synchronisation (exceptions exist), the container will manage your use of threads / synchronisation that's not to say that code doesn't exist its just its part of the container unless you are doing something advanced.

If you do require a job to run in another thread you should be requesting this via a work manager ie not creating thread pools, threads by hand as it defeats your containers ability to share / maintain resources.

hope that helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!