DBPrism prism.xconf file is parsed using JConfig library
jConfig is an extremely helpful utility, arming the developer with a simple API for the management of properties. Parts of the implementation are based on the idea that Properties, from Java's perspective, are a good thing, but can be better. jConfig employs the use of XML files for storing and retrieving of property information. The information can be stuffed into nice categories, which makes management quite a bit simpler. The ability to load from a URL is also a nice feature. It allows for a central repository where multiple instances of jConfig can read a single file. The nifty ability to switch between XML and Properties files isn't fully exploited yet, but will be coming soon. That will mean that the developer would take their existing Properties files and export them to XML. That means less time to get up and get going with jConfig.
jConfig files look like this:
<?xml version="1.0" encoding="iso-8859-1" ?>
<properties>
<variables>
<variable name="demo.db" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<variable name="cms.db" value="jdbc:oracle:thin:@$otherhost:1521:orcl"/>
<variable name="cms.user" value="DEMO_ADMIN"/>
<variable name="cms.pass" value="DEMO_ADMIN"/>
</variables>
<category name="general">
<property name="webmaster" value="webmaster@yourdomain.com"/>
....
<property name="dbusername" value="${cms.user}"/>
<property name="dbpassword" value="${cms.pass}"/>
<property name="connectString" value="${cms.db}"/>
...
<property name="alias" value="cms lcms"/>
</category>
<category name="DAD_cms">
</category>
<category name="DAD_lcms">
<property name="dbusername" value=""/>
<property name="dbpassword" value=""/>
</category>
...
</properties>
Variables defined at the top of the file could be used at any point of the prism.xconf file and are used for common settings.
The category general is used for definning common properties for all DAD, it will work as default values for the DAD defined below.
The DAD is defined using the reseverd word DAD_ as starting string and the DAD name, in the example above two DAD are defined, cms and lcms
An complete list of DBPrism parameters is divided into:
Click in the correct link to show a full explanation of the parameters.




