Sun OpenSSO Enterprise Policy Agent 3.0 Guide for JBoss Application Server 4.x/5.x

ProcedureTo Install the Agent Filter for an Application Protected by the JBoss Application Server 4.x/5.x Agent

  1. Ensure that the application you want to protect is not currently deployed on JBoss Application Server.

    If the application is deployed, undeploy it before continuing.

  2. Backup the application's web.xml file before you modify the deployment descriptor.

    The backup copy can be useful if you need to uninstall the agent later.

  3. Edit the deployment descriptors in the application's web.xml file as follows:

    1. Set the <DOCTYPE> element as shown in the following example:

      <!DOCTYPE web-app version="2.4"

      Note: JBoss Application Server supports the Java Servlet specification version 2.4. Version 2.4 is fully backward compatible with version 2.3. Therefore, all existing servlets should work without modification or recompilation.

    2. Add the <filter> elements to the deployment descriptor.

      Specify the agent filter as the first <filter> element and the agent filter mapping as the first <filter-mapping> element. For example:

  4. In the applications's jboss-web.xml and jboss.xml files, specify the value of the security-domain element as AMRealm. For example:

  5. Restart the JBoss Application Server instance.

  6. Deploy (or redeploy) the application on the JBoss Application Server web container.

    The agent filter is then added for the application.

Next Steps

You can also protect an application with Java EE declarative security. To learn more about protecting your application with Java EE declarative security, consider Deploying the Java EE Policy Agent Sample Application.