Configuring the DTD Generator

You can change the way that the DTD Generator functions by doing the following:

  1. Create a new DTD Generator customizer property file.

    Follow the directions for your platform:

    • AIXLinuxSun Solaris Operating EnvironmentWindowsDB2ConnectionCustomizer.properties is located in the DTDGenerator.zip archive.
      • Extract this file, rename it but keep the .properties extension, and place it in a directory that is in the classpath.

      • Important:
        Do not remove or modify the existing DB2ConnectionCustomizer.properties file.
    • iSeriesISeries_GENWCSDTD_Customizer.properties is located in the /QIBM/ProdData/WebCommerce/properties directory.
      • Copy this file to the /instroot/xml directory, rename the new file but keep the .properties extension, then make any necessary changes to the new file.
        Important:
        Do not remove or modify the original ISeries_GENWCSDTD_Customizer.properties file.
  2. Modify the database-driver values in the new DTD Generator customizer property file. For example:
    DBVendorName = DB2
    DBDriverName = COM.ibm.db2.jdbc.app.DB2Driver
    DBURL = jdbc:db2:
    DBSchemaName = DB2ADMIN 
    

    where:

    DBVendorName
    is used to select the type of database.
    The options are DB2 Universal Database for iSeries (DB2/iSeries), DB2 for other operating systems (DB2), and the Oracle database (Oracle).
    DBDriverName
    is used to select the JDBC driver.
    The options are DB2 Universal Database for iSeries (com.ibm.db2.jdbc.app.DB2Driver), DB2 for other operating systems (COM.ibm.db2.jdbc.app.DB2Driver), and the Oracle database (oracle.jdbc.driver.OracleDriver).
    DBURL
    is used to specify the URL to access the database.
    The options are DB2 Universal Database for iSeries (jdbc:db2://), DB2 for other operating systems (jdbc:db2:), and the Oracle database (jdbc:oracle:oci8:@).
    DBSchemaName
    is used to specify the schema name of the database
  3. Specify the new file name as the value of the customizer parameter of the DTD Generate command.