Supposed I have a LoginFilter, defined the usual way:
public class LoginFilter implements Filter, Servlet {
Its executed for every URL that goes through the container (tomcat, glassfish, etc.)
How many "LoginFilter" objects are in the VM? Just one? one per thread? perhaps a pool is kept by the container and managed by it?
Related: does the LoginFilter have to be thread safe?
public class LoginFilter implements Filter, Servlet {
Its executed for every URL that goes through the container (tomcat, glassfish, etc.)
How many "LoginFilter" objects are in the VM? Just one? one per thread? perhaps a pool is kept by the container and managed by it?
Related: does the LoginFilter have to be thread safe?