Configuring the container XML file

Each container has an XML configuration file that determines if the container loads the hub and lists the modules to be loaded. You also use the configuration files to set system properties for the Java virtual machine (JVM) in which the container runs. The hub and modules run in containers, and thus share some configuration parameters.

The XML is formed with a root container tag enclosing zero or more System Property tags, exactly one Hub tag, zero or more Module tags, and zero or one Data tag.

The format is as follows:

<Container id="1" port="8001">    <SystemProperty name="exampleName"    value="exampleValue" />    <Hub local=“true” host="127.0.0.1" port="7000"    bindName="Hub" logEvents="true" />    <Module id="101" class="com.omniq.xmp.ExampleModule"    name="Example Module" />    <Data directory="G:\example\data" /> </Container>

The modules can contain zero or more HttpHandler tags, which in turn can contain zero or more Param tags. For example:

<Module id=“101” class=“com.omniq.xmp.ExampleModule”    name=“Example Module”>    <HttpHandler class=“com.omniq.xmp.ExampleHandler”    resourceURI=“/handler/example”>        <Param name=“exampleName” value=“exampleValue”/>    </HttpHandler> </Module>