X4 Server Config Reader
This adapter outputs Java parameters from the X4 startup script and X4 configuration properties from the X4config.xml
file in an XML document. The desired parameters are named in a specifically structured input XML document and are output again by the adapter supplemented by the corresponding values.
Properties
Operation | Determines which operation the adapter executes Possible values: |
Parameter
Adapter | Main class of the adapter (do not change!) Possible values: |
Status values
1 | The operation was executed successfully. |
-1 | The operation failed due to a technical error. |
Input
This adapter expects an adapter-specific input XML structure. Any number of <Param/>
elements can be entered; the <X4Config/>
or <JavaConfig/>
element can be omitted as required.
<Config>
<X4Config>
<Param><Key><!--Element in X4Config.xml--></Key></Param>
...
</X4Config>
<JavaConfig>
<Param><Key><!--Java-Option (in startX4.bat)--></Key></Param>
<!-- weitere <Param/>-Elemente-->
</JavaConfig>
</Config>
Output
This adapter adds the dynamically read values to the input XML document if possible, for example:
<Config>
<X4Config>
<Param>
<Key><!--Element in X4Config.xml--></Key>
<Value><!--Konfigurationswert des entsprechenden Elements--></Value>
</Param>
</X4Config>
<JavaConfig>
<Param>
<Key><!--Java-Option (in startX4.bat)--></Key>
<Value><!--Aktueller Wert der Java-Option--></Value>
</Param>
</JavaConfig>
</Config>
Example
The following is an example of an output XML document containing X4 configuration key and values, and Java options and their values:
<Config>
<X4Config>
<Param>
<Key>x4.xstore.repositoryPath</Key>
<Value>C:/X4/X4DB/</Value>
</Param>
</X4Config>
<JavaConfig>
<Param>
<Key>x4.config.file</Key>
<Value>X4config.xml</Value>
</Param>
<Param>
<Key>javax.xml.transform.TransformerFactory</Key>
<Value>net.sf.saxon.TransformerFactoryImpl</Value>
</Param>
</JavaConfig>
</Config>