Tutorials > Program model > Customize the Data Load utility

< Previous | Next >


Verify your customization

In this section, you verify your customization by running the Data Load utility in the development environment.


Procedure

  1. Open WebSphere Commerce Developer.

  2. Ensure the WebSphere Commerce Server is stopped before running the Data Load utility. See Start and stop WebSphere Commerce Test Server for more information about stopping the server.

  3. Click Run > Run Configurations. The Run Configurations dialog displays.

  4. Create a new Java Application configuration. Double-click the Java Application on the left panel; then on the Main tab, enter the following information:

    1. In the Name field, type a name for the configuration.

    2. In the Project field, enter the project WebSphereCommerceServerExtensionsLogic.

    3. In the Main class field, enter the class name com.ibm.commerce.foundation.dataload.DataLoaderMain.

  5. Click the Arguments tab; then enter the following information:

    1. In the Program arguments field, enter ..\samples\DataLoad\warranty\wc-dataload-warranty.xml.

    2. In the VM arguments field, set the following parameter:

      -Dj2se

      Sets the Java platform type to J2SE. Set this to true.

      -Djava.util.logging.config.file

      Sets the JVM parameter. Set this to ..\workspace\WC\xml\config\dataload\logging.properties.

    3. In the Working directory field, enter the WCDE_INSTALL/bin directory.

  6. Click the Classpath tab; click User Entries, then add the following class path information:

    1. Click Add External JARs, then browse to the location of the JDBC driver JAR file for the specific database you are using. Click Open.

      WCDE_INSTALL\lib\derby.jar

      db2_installdir\java\db2jcc4.jar

      oracle_installdir\jdbc\lib\ojdbc6.jar

    2. Click Add JARs, then browse to the location of the Inventory-Server.jar and Price-Server.jar files in the WCDE_INSTALL/WC directory.

    3. Click Advanced > Add Folder, then click OK. Navigate to WC > xml, then click OK.

  7. Click Run.

  8. Verify the results by running the following SQL statements:

    SELECT * FROM XWARRANTY;
    SELECT * FROM XCAREINSTRUCTION;
    

    You see the warranty and care information content you specified in the XML file.

< Previous | Next >


+

Search Tips   |   Advanced Search