DODS Project
About DODS
Project Mail Lists
FAQs




DODS FAQs - How do I change template sets and databases in DODS?
dods.gif (11357 bytes)To configure DODS, use dodsConf.xml file, located in <dods_root>/build/conf directory. 

 This file contains the following information:

1.  Location of templates - tag <TemplateDir>

    example: 

<TemplateDir>C:/DODS/build/template</TemplateDir>

2. For each database vendor, location of its configuration file (in xml format) - tag <Database>. The paths are relative to dodsConf.xml file folder.

     example:

    <Database> 
	<Vendor name="Standard">StandardConf.xml</Vendor>

	<Vendor name="InstantDB">InstantDBConf.xml</Vendor> 

                     <Vendor name="Oracle">OracleConf.xml</Vendor>

                     <Vendor name="Informix">InformixConf.xml</Vendor>

                    <Vendor name="MSQL">MSQLConf.xml</Vendor>

                    <Vendor name="Sybase">SybaseConf.xml</Vendor>

                    <Vendor name="PostgreSQL">PostgreSQLConf.xml</Vendor>

                    <Vendor name="HypersonicSQL">HypersonicSQLConf.xml</Vendor>

                    <Vendor name="DB2">DB2Conf.xml</Vendor>

                    <Vendor name="QED">QEDConf.xml</Vendor>

                   <Vendor name="MySQL">MySQLConf.xml</Vendor>

    </Database>   

 Database Vendor's configuration file contains information about that database (type of ObjectId, column name for oid and version, information about DeleteCascade, constraints, quotes,comments, characterd for like and wildcard, mapping JDBC types to vendor-specific data types,...).

 If tags <ClassPath>, <ClassName> (in database vendor's configuration file) are not mentioned, standard code is generated for that database vendor.

 If database is specific, path to jar file for that database vendor is in tag <ClassPath>, and its main class is in tag <ClassName>.

 example, for database Informix:

<ClassPath>C:/DODS/lib/dbvendors/informix.jar</ClassPath>

<ClassName>com.lutris.appserver.server.sql.informix.InformixLogicalDatabase</ClassName>

For all the latest information on DODS, please refer to http://dods.enhydra.org/
Questions, comments, feedback? Let us know...