Sun Java System Application Server Platform Edition 9 Administration Guide

ProcedureTo Configure a Resource Adapter for an ebXML Registry

The result of this procedure will be to create a soar.rar resource adapter file that you can deploy to Application Server.

Before You Begin

Set the JWSDP_HOME environment variable to the directory where JWSDP 1.6 is installed and the JAVA_HOME environment variable to the directory where J2SE is installed.

  1. Download the ra.xml file from the Glassfish site: https://glassfish.dev.java.net/javaee5/ws-mgmt/registry/ra.xml.

    Save the file in the /tmp directory (C:\tmp on Windows).

  2. You can either download and execute a script, or perform the steps manually.

    • To use a script:

      1. Download one of the following scripts:

        Save the script to the /tmp directory (C:\tmp on Windows).

      2. Execute the script.

    • To perform the steps manually:

      1. Enter the following commands:

        cd $JWSDP_HOME/registry/lib
        mkdir tmp
        cp soar-jaxr-ra.jar ./tmp
        cd tmp
        jar xvf soar-jaxr-ra.jar
        rm soar-jaxr-ra.jar ra.xml ./META-INF/SUN* ./META-INF/pack.properties
        cp ra.xml META_INF .
        cp $JWSDP_HOME/registry/lib/oasis-* .
        cp $JWSDP_HOME/registry/lib/omar-common.jar .
        cp $JWSDP_HOME/registry/lib/jaxr-ebxml.jar .
        cp $JWSDP_HOME/jwsdp-shared/lib/commons-logging.jar .

        Note –

        The commands shown are for Unix or Linux. Use the equivalent commands on Windows.


        Now, the tmp directory should contain the following files and directories:

        • META-INF directory

        • com directory

        • jaxr-ebxml.jar

        • oasis-regrep.jar

        • omar-common.jar

        • oasis-saml1.1.jar

        • oasis-saml2.0.jar

        • commons-logging.jar

      2. Enter this command to create resource adapter file soar.rar:


        jar cvf soar.rar META-INF com jaxr-ebxml.jar oasis-regrep.jar omar-common.jar oasis-saml1.1.jar oasis-saml2.0.jar commons-logging.jar

        Note –

        To use the jar command on Windows, you must have the JAVA_HOME\bin directory on your path.


Next Steps

Once you have created the soar.rar file, deploy it to create a registry as described in the next section.