Deployment and Grid Libraries

Once the class is written and compiled, it must be deployed as a Grid Library.

Grid Libraries are the method of deploying resources to Engines. They are an archive containing a set of resources and properties necessary to run a Grid Service, along with configuration information that describes how those resources are to be used.

To create and deploy a Grid Library:

1. Create a JAR file containing the necessary class file (JavaAdder.class).
2. Create a grid-library.xml file, like the one below:
<?xml version="1.0" encoding="UTF-8"?>
<grid-library>
<grid-library-name>adder</grid-library-name>
<grid-library-version>1.0.0.1</grid-library-version>
<jar-path>
<pathelement>jars</pathelement>
</jar-path>
</grid-library>
3. Create an adder directory in a temporary location, and place the grid-library.xml file in it.
4. Create a jars directory within the adder directory, and place the JAR file containing the class in it.
5. Zip all contents under adder directory, making sure the directory adder is not included in the ZIP archive, to create an adder-1.0.0.1.zip Grid Library. If you’re using UNIX, you can also create a tar.gz file of the directory instead (such as adder-1.0.0.1.tar.gz or adder-1.0.0.1.tgz).
6. Log in to the GridServer Administration Tool and go to Services > Services > Grid Libraries.
7. At the top right corner of the page, click Upload Grid Library, browse to and select your Grid Library file, then click Upload.
8. Select your Grid Library in the list and click Deploy.

More information about Grid Libraries and the deployment process is described the TIBCO GridServer® Administration and the TIBCO GridServer® Developer's Guide.