How to Build a JRE GridLibrary

How to Build a JRE GridLibrary

book

Article ID: KB0090095

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
Sometimes applications require that the GridServer Engines run a specific Java Runtime Environment (JRE) version. When using a version of GridServer that supports GridLibraries (4.1+) you can package any JRE version as a GridLibrary on which the application GridLibrary may depend. To do so you must perform the following steps:

    * Locate a functional installation of the target JDK version for the target platform.
    * Ensure that the US Export Sun JCE package is properly installed in the target JDK. Typically this means updating the files US_export_policy.jar and local_policy.jar in the jre/lib/security directory under the JDK install directory.
    * Create a grid-library.xml file with the following contents, Where the os attribute and grid-library-version tag equal your target environment:

<?xml version="1.0" encoding="UTF-8"?>
&ltgrid-library jre="true" os="win32">
    &ltgrid-library-name&gtjre</grid-library-name>
    &ltgrid-library-version&gt1.5.0.6</grid-library-version>
    &ltlib-path>
        &ltpathelement&gtjre/bin/server</pathelement>
        &ltpathelement&gtjre/bin</pathelement>
    </lib-path>
</grid-library>

    * Archive the grid-library.xml file and the jre directory using ZIP or tar and gzip into a file named jre-win32-1.5.0.6.zip (or .tar.gz), again where the os name and version number equal your target environment. You may now deploy this GridLibrary.
    * Modify your appliacation GridLibrary so that it contains the following dependency tag:

&ltdependency>
        &ltgrid-library-name&gtjre</grid-library-name>
        &ltgrid-library-version&gt1.5.0.6</grid-library-version>
    </dependency>

After performing these steps your application will use the exact JRE version that you have specified.

Issue/Introduction

How to Build a JRE GridLibrary