Hello All,
I would like to make my servlet application to be thread safe,
so, i'm trying to implement the SingleThreadMethod interface.
Can some one throw some light on it how to implement exactly
and sample code will be appriciated..
SingleThreadModel:
As per the document, no two threads can call the service method at a time.
Or the servlet container maintain the pool of servlet instances(what is this
pool instances) and it will pass the request to the free instance..
Thanx in advance
Regards
G S Sundaram
Sample code you can get in any book or from Sun's Website.
The instances are of the servlet class. If one has pool of servlet class
whenever request comes it can straightaway be assigned for the request,
rather than instantiating when the request comes.
v
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html