Deployment Example 2: Federation Using SAML v2

13.8 Configuring the J2EE Policy Agents to Work with the J2EE Policy Agents Load Balancer

Use the following as your checklist for configuring the J2EE policy agents to work with the agents load balancer.

  1. Configure J2EE Policy Agent 3 to work with the J2EE Policy Agents load balancer.

  2. Configure J2EE Policy Agent 4 to work with the J2EE Policy Agents load balancer.

  3. Verify that the J2EE Policy Agents load balancer works properly.

ProcedureTo Configure J2EE Policy Agent 3 to Work with the J2EE Policy Agents Load Balancer

  1. As a root user, log into the Protected Resource 3 host.

  2. Go to the following directory:


    # cd /export/j2ee_agents/am_as81_agent/agent_001/config
  3. Update the AMagents.properties file.

    Set the following properties as in this example:


    # vi AMAgent.properties
    com.sun.identity.agents.config.fqdn.mapping[LoadBalancer-10.siroe.com] = 
    LoadBalancer-10.siroe.com
    com.sun.identity.agents.config.agent.host = LoadBalancer-10.siroe.com
    com.sun.identity.agents.config.agent.port = 4443
    com.sun.identity.agents.config.agent.protocol = https

    Save the file.

  4. Restart Application Server 3.


    # cd /opt/SUNWappserver/appserver/bin
    #./asadmin stop-domain
    Domain domain1 stopped.
    # ./asadmin start-domain --user admin --password 11111111
    Starting Domain domain1, please wait.
    Log redirected to /var/opt/SUNWappserver/domains/domain1/logs/server.log.
    
    Domain domain1 started.

ProcedureTo Configure J2EE Policy Agent 4 to Work with the J2EE Policy Agents Load Balancer

  1. As a root user, log into the Protected Resource 4 host.

  2. Go to the following directory:


    # cd /export/j2ee_agents/am_as81_agent/agent_001/config
  3. Update the AMagents.properties file.

    Set the following properties as in this example:


    # vi AMAgent.properties
    com.sun.identity.agents.config.fqdn.mapping[LoadBalancer-10.siroe.com] = 
    LoadBalancer-10.siroe.com
    com.sun.identity.agents.config.agent.host = LoadBalancer-10.siroe.com
    com.sun.identity.agents.config.agent.port = 4443
    com.sun.identity.agents.config.agent.protocol = https

    Save the file.

  4. Restart Application Server 4.


    # cd /opt/SUNWappserver/appserver/bin
    #./asadmin stop-domain
    Domain domain1 stopped.
    # ./asadmin start-domain --user admin --password 11111111
    Starting Domain domain1, please wait.
    Log redirected to /var/opt/SUNWappserver/domains/domain1/logs/server.log.
    
    Domain domain1 started.

ProcedureTo Verify that the J2EE Policy Agents Load Balancer Works Properly

  1. Open a new browser.

  2. Go the to J2EE Policy Agents load balancer URL:


    https://LoadBalancer-10.siroe.com:4443/agentsample

    The Federation Manager login page is displayed.

  3. Log in to the Federation Manager console using the following information:

    User Name:

    spuser

    Password:

    spuser

    The J2EE Policy Agent Sample Application welcome page is displayed.