wood burning stoves 2.0*
The moose likes Servlets and the fly likes can there ba more than one instance of servlet of a servlet at one time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can there ba more than one instance of servlet of a servlet at one time?" Watch "can there ba more than one instance of servlet of a servlet at one time?" New topic
Author

can there ba more than one instance of servlet of a servlet at one time?

manas ranjan mandal
Ranch Hand

Joined: Apr 02, 2008
Posts: 97
I want to know that can there be more than one instance of servlet class in the servlet container?if yes please give me an example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41054
    
  43
A container might create more than one instance if the servlet implements the SingleThreadModel interface. But that interface is deprecated and shouldn't be used any more, so this is kind of an academic example.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: can there ba more than one instance of servlet of a servlet at one time?
 
Similar Threads
can same servlet have multiple instance in container
more than one instance of servlet
when init() is being called?
why cant there be multiple servlets running at the same time?
How is Servlet a singleton?