Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Servlet Endpoints - Does not manage multi-threading issues.

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan,

scdjws-5 study note, In page number 130,

The following points are given

Servlet Endpoints

Does not manage multi-threading issues.



Servlet end point does not manage Multi-threading?, still servlet container will take care of multithread right? please correct me if i am wrong?
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The container does not limit the number of threads that are allowed to execute concurrently in a servlet endpoint, like a servlet.
The EJB container, on the other hand, limit the number of threads that can execute in an EJB (with container managed concurrency) to one.
Thus you, as a developer, must take the above into consideration when developing the different kinds of endpoints. Or rather: You do not have to think about it when developing an EJB endpoint, but you must be careful with servlet endpoints.
Best wishes!
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
ScroogeXHTML 9.0 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/731949/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic