HttpSession and HttpServlet singletons?
Hi guys,
I have here two questions for better understanding of the HttpSession and HttpServlet classes:
1. Is the HttpSession object existing between the server and the client and used for data exchange a kind of singleton? E.g. if I call a servlet concurrently with different parameters (as shown above), will this conflict on evaluation of the session parameters on the servlet side?
"...MyPage.jsp?attr1=1..."
"...MyPage.jsp?attr1=2..."
2. Is the Servlet itself ( "public class MyServlet extends HttpServlet{..." ) also a singleton? I.e. for the above described use case also a problem?
Thanks.