
Extending the Order facade client that initiates the creation of recurring order in the Subscription Manager
In this lesson, you extend the process action and the Order facade client commands. The
updated facade client command accepts the new parameters from the Deprecated featureMadisons store front for the day-of-month schedule type. The process action command builds the
parameters for the day-of-month schedule and starts the Subscription Manager facade
client.
Procedure
- Copy ServiceProviderProcessRecurringOrderCmdExtImpl.java file:
- In the Enterprise Explorer view, expand WebSphereCommerceServerExtensionsLogic.
- Right-click src. Select .
- Enter com.mycompany.commerce.order.commands as the Name of the package.
- Copy ServiceProviceProcessRecurringOrderCmdExtImpl.java from temp\src\com\mycompany\commerce\order\commands to the new package.
-
Copy ServiceProviderOrderFacadeConstantsExt.java file:
- Right-click src. Select .
- Enter com.mycompany.commerce.order.facade as the Name of the package
- Copy ServiceProviderOrderFacadeConstantsExt.java from temp\src\com\mycompany\commerce\order\facade to the new package. This constants file is used in the client facade.
-
Copy ServiceProviderOrderFacadeClientExt.java file:
- Right-click src. Select .
- Enter com.mycompany.commerce.order.facade.client as the Name of the package.
- Copy ServiceProviderOrderFacadeClientExt.java file from temp\src\com\mycompany\commerce\order\facade\client to the new package.
-
Update the process action command implementation to use the following one in the CMDREG
table:
- Update the struts configuration file for the order service
to use the new facade client.
- Save your changes.