Products | Versions |
---|---|
TIBCO DataSynapse GridServer | - |
Not Applicable | - |
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"?>
<grid-library jre="true" os="win32">
<grid-library-name>jre</grid-library-name>
<grid-library-version>1.5.0.6</grid-library-version>
<lib-path>
<pathelement>jre/bin/server</pathelement>
<pathelement>jre/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:
<dependency>
<grid-library-name>jre</grid-library-name>
<grid-library-version>1.5.0.6</grid-library-version>
</dependency>
After performing these steps your application will use the exact JRE version that you have specified.