Menu
  • HOME
  • TAGS

Difference between Threads created by web container and Normal Threads?

java,multithreading,servlets,web-container

All the threads in java are created by Extending Thread Class or implementing Runnable Interface. So web container threads are also created in same way. You dont see run method inside servlet, that's because servlet code is called inside run method of thread which is created by "main" thread of...

How can web server/web container tell several requests are from the same client?

tomcat,servlets,webserver,web-container

Using cookies. If cookies are disabled, it may use URL parameters. For example, for Tomcat, the cookie is called JSESSIONID and its value is an alphanumeric string that the container associates with your session. ...