IBM TRIRIGA Application Platform Version 3.5.1

Servlet proxy access

A servlet proxy is available at the following URL: http://YourServer/html/en/default/rest/ConnectorName. If your servlet proxy is named MyFirstConnector and properly configured, it is available at the following URL: http://YourServer/html/en/default/rest/MyFirstConnector.

You must have a valid username and password to access this URL. You can add this URL as an external link within a portal section or within a custom form tab.

All access to your servlet proxy starts from this base URL. To access the files within your class loader resource files, append the word resource to the base URL, followed by the path to the resource that you want to load. For example, if you have an image as a resource file named helloWorld.jpg, you can load this image dynamically with the following URL: http://YourServer/html/en/default/rest/MyFirstConnector/resource/helloWorld.jpg.

The server checks whether this resource file is loaded. If the file is not loaded, the server pulls the file from the Resource File binary field in the resource file record and places it into the InstallationDirectory/userfiles/ClassLoaderName folder. When a request is made, the server checks the cache and matches its revision number to the revision number in the class loader. If the revision numbers are different, the server reloads all files that are not part of a .jar file into this directory. Then, the server refers to this location for each subsequent request.

Your resource files are automatically refreshed each time that a change is made. You do not need to restart the server to refresh the class loader.



Feedback