You can change the way that the DTD Generator functions by doing the following:
- Create a new DTD Generator customizer property file.
Follow the directions for your platform:
DB2ConnectionCustomizer.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.
- Extract this file, rename it but keep the .properties extension, and place it in a directory that is in the classpath.
ISeries_GENWCSDTD_Customizer.properties is located in the /QIBM/ProdData/CommerceServer56/properties directory.
- Copy this file to the WC_userdir/instances/instance_name/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.
- Copy this file to the WC_userdir/instances/instance_name/xml directory, rename the new file but keep the .properties extension, then make any necessary changes to the new file.
- 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
- Specify the new file name as the value of the customizer parameter of the DTD Generate command.