In this recipe, we will configure GateIn with JAAS using JBoss AS (5.x and 6.x).
WEB-INF folder inside your portal application.
Create a new file named
jboss-web.xml in the
WEB-INF folder with the following content:
<jboss-web> <security-domain> java:/jaas/gatein-domain </security-domain> </jboss-web>
This is the JNDI URL where the JAAS module will be referenced. This URL will automatically search the JAAS modules called
The configuration of the modules can be found inside the file
gatein-jboss-beans.xml. Usually, this file is inside the deployed
<PORTAL_WAR_ROOT>/META-INF, but it could be placed anywhere inside the deploy directory of JBoss, thanks to the auto-discovery ...