File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet object creation

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,

the process inside a container is one servlet-multiple threads(requests), that is no matter how many requests are made,only one servlet object is created. does this applies to all classes, such as servlets generated from a jsp, models(POJC,EJB), that we use in our web application.

have a nice day
krishna prasad
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, servlets created by the container follow the rules that the container applies. Objects that you create in your own code follow the rules that you apply.
 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a servlet which is called upon by a request. servlet creates an object of a model that interacts with the database. so number of Model objects created is equal to the number of requests received, but the servelt is one and only one. is that right?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic