Tim Moores wrote:Even if the requests are sent simultaneously -assuming that's the question, I'm not sure- it's unlikely that they would arrive simultaneously at the server after traveling over the network. And even if they arrive simultaneously, it's not a given that they will be processed concurrently.
suppose if any websites (web application which is hosted in internet) and if it gets multiple requests at a time will the container creates multiple instances to the servlet component ?(if that web applcaition is developed using servlets as web resource program
). for example just assume xxx bank site getting lots of requests at a time..?
@Piyush Mangal : Can you please what needs to be done in order to have this css file link added to response ?
Palak Mathur wrote:
Piyush Mangal wrote:There can only be a single instance of a servlet at any given point of time. All concurrent requests are processed by a sever by having multiple threads executing on a single instance of a servlet. So in a way, your servlet is already singleton.
Are you sure? Is it multiple thread on single instance or the servlet container creates a pool of instances for a servlet to handle concurrent responses?
String lastdepo = (String)session.getAttribute("sesiDepo");