Discussions

Web tier: servlets, JSP, Web frameworks: servlet object creation

  1. servlet object creation (1 messages)

    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

    Threaded Messages (1)

  2. Re: servlet object creation[ Go to top ]

    Since JSPs are compiled into servlets, this applies to JSPs too. However, apart from servlets you can make no general assumptions is the class is a "singleton" or not, it depends entirely on configuration (in the EJB case) or implementation / framework. You simply have to do your research in all cases. /Niklas