Sun Java System Portal Server 7 Developer's Guide

Loading Your Shared Object

The robot uses the filters defined in filter.conf to filter resources that it encounters. If the file filter.conf uses your customized robot application functions, it must load the shared object that contains the functions.

To load the shared object, add a line to filter.conf:

Init fn=load-modules shlib=[path]filename.so funcs="function1,function2,...,functionN"

This initialization function opens the given shared object file and loads the functions function1, function2, and so on. You can then use the functions function1 and function2 in the robot configuration file (filter.conf). Remember to use the functions only with the directives you wrote them for, as described in the following section.