Deployment Example 1: Access Manager 7.0 Load Balancing, Distributed Authentication UI, and Session Failover

ProcedureTo Run the J2EE Policy Agent Installer on Application Server 1

Before You Begin

Application Server 1 must be stopped when you install J2EE Policy Agent 1.

You must stop both the Application Server 1 instance and the administration server before installing J2EE Policy Agent 1.


# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/
# ./stopManagedWebLogic.sh ApplicationServer-1  t3://localhost:7001 
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin
# ./stopWebLogic.sh
  1. Unpack the J2EE Policy Agent bits.


    # cd /opt
    # /usr/sfw/bin/gtar -xvf /export/software/SJS_Weblogic_9_agent_2.2.tar
  2. Start the J2EE Policy Agent installer.

    # cd /opt/j2ee_agents/am_wl9_agent/bin
    # ./agentadmin --install
  3. When prompted, provide the following information:


    Please read the following License Agreement carefully:

    Press Enter to continue. Continue to press Enter until you reach the end of the License Agreement. 


    Enter startup script location.

    Enter . 


    /usr/local/bea/user_projects/domains/
    ProtectedResource-1/bin/
    startwebLogic.sh
    

    Enter the WebLogic Server instance name: [myserver]

    Enter ApplicationServer-1.


    Access Manager Services Host:

    Enter LoadBalancer-3.example.com.


    Access Manager Services port: [80]

    Enter 90.


    Access Manager Services Protocol: [http]

    Enter http.


    Access Manager Services Deployment URI: [/amserver]

    Accept the default value. 


    Enter the Agent Host name:

    ProtectedResource-1.example.com


    Enter the WebLogic home directory: 
    [usr/local/bea/weblogic90]	

    Enter /usr/loca/bea/weblogic91.


    Enter the port number for 
    Application Server instance [80]:

    Enter 1081.


    Enter the Preferred Protocol for 
    Application instance [http]:

    Accept the default value. 


    Enter the Deployment URI for 
    the Agent Application [/agentapp]

    Accept the default value. 


    Enter the Encryption Key 
    [Q558gNigkno4dGZmPtgGs4K1HL1153QD]:

    Accept the default value. 


    Enter the Agent Profile name:

    Enter j2eeagent-1.


    Enter the path to the password file:

    Enter /opt/j2ee_agent/am_w19_agent/agent_pwd.


    Are the Agent and Access Manager installed on 
    the same instance of Application Server? [false]:

    Accept the default value. 


    Verify your settings and decide from 
    the choices below:
    1. Continue with Installation
    2. Back to the last interaction
    3. Start Over
    4. Exit
    Please make your selection [1]:

    Accept the default value. 

    The J2EE Policy Agent installer creates a new file in the Application Server bin directory:


    /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/
    setAgentEnv_ApplicationServer-1.sh
  4. Modify the Application Server startup script to reference the new file.

    1. As a root user, log into ProtectedResource–1.


      # cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/
    2. Make a backup of setDomainEnv.sh.

    3. In setDomainEnv.sh, insert the following line at the end of the file:


      . /usr/local/bea/user_projects/domains/ProtectedResource-1/
      bin/setAgentEnv_ApplicationServer-1.sh

      This command references the file the installer created in the Application Server bin directory.

    4. Save the setDomainEnv.shfile.

    5. Change permissions for the setAgentEnv_ApplicationServer-1.sh file:

      # chmod 755 setAgentEnv_ApplicationServer-1.sh

  5. Start the Application Server administration server.


    # cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin
    # nohup ./startWebLogic.sh &
    # tail -f nohup.out

    Watch for startup errors.