Hey, i have been playing with jaas and JBoss container integration using your framework (btw, nice piece of work) and have found a problem regarding the spring context used inside the container authorization process.
Finally after some tests with the JBoss class loader and the bean definition file i have been able to create a JBoss realm and succesfully authenticate a username/password token. The username token is encoded in SHA1 on a database table and i use hibernate+spring to access the data.
Everything works perfectly, the only problem is that the spring context is closed and opened on every request forcing hibernate session and the rest of beans to initialize on every request.
is there any way to keep spring context open through requests?