Previous Topic: Java SDK Sample Application Overview

Next Topic: Java SDK  Sample Application Execution


Java SDK Sample Application Deployment

Deployment of the Java SDK sample application requires installing Tomcat and Federation Manager at the relying party.

To deploy the Java SDK sample application

  1. Install the Java SDK package at any preferred location.
  2. Set the environment variable FEDSDKROOT to the installation Directory of Java SDK.

    Note: The value of FEDSDKROOT points to the location of the SDK directory. Example: C:\Program Files\CA\Federation Manager\sdk.

    This environment variable is set automatically on Windows, but must be exported manually on UNIX platforms.

  3. Install Tomcat 5.0 and set the TOMCAT_HOME environment variable to point to the Tomcat root folder.

    Note: Tomcat must be installed on a different system from the one Federation Manager is installed on.

  4. Deploy FEDSDKROOT\sample\javasdk/war to the Web server by copying it to the TOMCAT_HOME\webapps\ folder.
  5. Start the Tomcat server.
  6. Try accessing the link “http://<FQDN of Tomcat Host>:<port num>/” to determine whether Tomcat is up and running.
  7. If you are using the legacy (FEDPROFILE) cookie, update fedsample.properties in the TOMCAT_HOME\webapps\javasdk\WEB-INF\classes folder as follows:
  8. If you are using the open format cookie, update fedsample.properties in the TOMCAT_HOME\webapps\javasdk\WEB-INF\classes folder as follows:
  9. The following parameters must be updated if you are testing light weight provisioning:
  10. Update the sdkloggingconfig.properties file to enable logging. Logging is disabled by default.
  11. Install Federation Manager at the relying party of a Federation partnership and define an asserting party-relying party partnership.
    1. Select appropriate Redirect mode.
    2. Specify the Target URL of the partnership. Enter one of the following:

The sample application is now deployed and ready to run.