IBM TRIRIGA Application Platform Version 3.5.1

Adding resource files to class loaders

You add resource files to your class loader to provide your classes and form assets, such as web page (.html), JavaScript (.js), Flash, image, and property files. For example, a JavaScript (.js) resource file in the EsriJS ClassLoader record specifies from where the GIS maps are sourced.

About this task

A resource file can be used by more than one class loader.

For resource files, a good rule of thumb is to prefix the library names with an abbreviation of the class loader and the real name of the library.

If you are uploading a .jar file, then only the .class files are loaded into the class path. If you have many assets such as web page (.html), JavaScript (.js), and image files, you can collect them into a compressed file and upload them as a single file. You also can upload a file individually, such as a configuration file, so that you can more easily modify it.

When you modify, add, or remove a resource file from a ClassLoader record, a workflow runs that increments the revision number. A change to this revision number tells the IBM® TRIRIGA® Application Platform to reload this ClassLoader record.

Procedure

  1. Go to Tools > System Setup > System > Class Loader.
  2. Add or open the ClassLoader record.
  3. In the record, find or add your resource files.
  4. Save the record.


Feedback