JAAS « Tomcat « JPA Q&A





2. Weird Tomcat / JAAS Login Module situation    forum.hibernate.org

While attempting to write a custom LoginModule from Tomcat 6, we encountered an interesting situation that we cannot find a good way around. Like the LoginModule from http://www.hibernate.org/139.html, we were initializing a SessionFactory whenever the LoginModule's initialize() method was being called, which is when a user POSTs to j_security_check, and when our web application initializes as it uses Hibernate, too. We ...