Authentication across tomcat context as well as host level realms
===

I have multiple web applications in the same host, and am using host level JDBC realm for authentication. But one specific application requires additional security and needs an additional form based authentication (additional password). I have set up a JDBC realm in the specific web app context. When users try to access thru this specific application first, I want to authenticate in one step and need to check against the host level realm as well as the app context level realm. I could find no way of doing this in 2 steps, one after the other. It would require that I will be able to specify which realm to use for each of the login checks.
Please let me know if this is possible, and let me know how to do it.

