Quantcast
Channel: How do servlets work? Instantiation, sessions, shared variables and multithreading - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by Lauri Lehtinen for How do servlets work? Instantiation, sessions, shared variables and multithreading

$
0
0

Sessions - what Chris Thompson said.

Instantiation - a servlet is instantiated when the container receives the first request mapped to the servlet (unless the servlet is configured to load on startup with the <load-on-startup> element in web.xml). The same instance is used to serve subsequent requests.


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>