Writing a custom Tomcat login module (Realm)
In my current project I needed to migrate user passwords from one storage type to another without users knowing it. The answer was to write a custom Realm in Tomcat which turned out to be really simple.