Modify the command registry

In this step, you modify the command registry so that the new MyOrderItemAddCmdImpl implementation class gets used instead of the original OrderItemAddCmdImpl implementation class. The only table in the command registry that needs to be modified is the CMDREG table. In this case, the new implementation class is used for all stores.

About this task

To register MyNewControllerCmd in the CMDREG table:


  1. Start the test environment.
  2. Open a browser and type the following URL: http://localhost/webapp/wcs/admin/servlet/db.jsp.
  3. Enter the following SQL statement:
    update CMDREG
    set CLASSNAME=''
    and storeent_Id=0;
  4. Click Submit Query to run the SQL statement.