GTLAB

From Ogce

Contents

Introduction

Grid Tag Libraries and Beans (GTLAB) provides components that simplify the process for developing Grid Web applications, portlets, and gadgets. GTLAB extends Java Server Faces and encapsulates the [Java_COG_Kit | Java COG Kit's Abstraction Layer]. The goal of GTLAB is to make it possible to develop Grid Web applications entirely through reusable tag libraries with no additional coding.

Get the Code

You can get the code either through an anonymous SVN checkout or as a TAR file.

SVN Latest Tagged Release

Tagged releases represent stable versions of the code base. Expect these to compile and function properly. The latest available tagged version is

 svn co https://ogce.svn.sourceforge.net/svnroot/ogce/tags/GTLAB-release-SC08-1.1

This is the Supercomputing 2008 version. Any updates to this will increment 1.1.

SVN Latest Checkout

To get the latest version of the code, use the command

  svn co https://ogce.svn.sourceforge.net/svnroot/ogce/GTLAB

This is always "use as your own risk". A particular commit is not guaranteed to compile and may contain known flaws. Read the commit messages.

Just Want the Tars?

You can also get the tarred code from Source Forge if you don't want to fool around with SVN. Look for the link Download GNU tarball at the bottom left of the page.

Example Applications

Example GTLAB Web interfaces include the following

  • MyProxy
  • Job Submission using Globus GRAM
  • Task monitoring
  • LoadLeveler Queue Dashboard
  • Remote file browsing and download using GridFTP

These and other examples are available in the GTLAB/jsf_standalone/src/main/webapp/examples directory of the release. These can be used as standalone apps, as Google gadgets, or as portlets. These are intended to show the flexibility of GTLAB libraries and tags.

Installation

The download includes a Tomcat server and will correctly deploy everything, so all you need is Java and Maven 2.0.7 or higher. To configure and install, follow these steps:

   * Untar the release
   * cd GTLAB
   * Edit pom.xml to update any parameters.
   * Run "mvn clean install"

Optionally, cd jsf_standalone/src/main/resources and edit resources.properties to change default values.

This will compile the standalone version of the libraries and examples. It will also make the Google Gadget versions available. These are defined by the XML files in jsf_standalone/src/main/webapp/

If you just want to rebuild the tag libraries, use the command

 mvn -o clean install -f jsf_standalone/pom.xml

The -o option (for "offline") will save some time by not checking repositories for new versions of third party jars.

Running Examples

After installation, start your portal server and point your browser to (for example)

   http://localhost:8080/GTLAB/examples/GuideToExamples.html

and click the links.

   NOTE: If you want to directly load the examples, use the .jsf extension, NOT the .jsp extension, in your URLs.  This causes JSF to process the associated JSP page.

Converting Standalone Applications into Portlets

To convert the GTLAB applications into portlets, do the following:

 * cd GTLAB/transition/
 * mvn clean process-resources

Next, compile the portlets. You may need to edit the pom.xml file to correctly point to your OGCE portal installation.

 * cd GTLAB/portlet
 * mvn clean install

The portlets will now be available in the OGCE's GridSphere portal. If you have developed new portlet applications, you will also need to manually edit the files portlet.xml, group.xml, and layout.xml in GTLAB/portlet/src/main/webapp/WEB-INF.

Web site tools