Configuring Java CAPS JBI Components for GlassFish Clustering

ProcedureTo Add the FTP Binding Component to the Cluster

  1. Add the following shared library to the cluster as described in To Add a Shared Library to a Cluster:

    • sun-encoder-library

  2. Add the FTP BC to the cluster as described in To Add a Java CAPS JBI Component to a Cluster.

    The name of the FTP BC node is sun-ftp-binding.

  3. Before you click OK on the Manage Targets page, configure the runtime properties as you typically would for the FTP BC.

  4. Configure the JVM properties for the FTP BC by doing the following:

    1. In the left navigation panel of the Admin Console, expand Configurations, expand cluster_name-config, and then select JVM Settings.

    2. Click the JVM Options tab.

    3. To enable clustering, click Add JVM Option and enter the following in the empty row that appears:


      -Dcom.sun.jbi.ftpbc.isClustered=true
    4. To define a file-based persistence directory, click Add JVM Option and enter the following in the empty row that appears:


      -Dcom.sun.jbi.ftpbc.token.persistence.url=persistence_directory
      

      where persistence_directory is the location where the FTP BC lock files are stored.

    5. Click Save.

    6. Restart the cluster to pick up the changes to the JVM options.