Configuring the DOM integration feature
The DOM integration feature is configured and the store is updated to use an external system for inventory and order processing.
Procedure
-
Start the following servers:
- Start the WebSphere Commerce server.
- Launch WebSphere Commerce Developer and start the WebSphere Commerce test server.
- Open the WebSphere Commerce Administration Console.
- On the Site/Store Selection page, select Site.
- Select Configuration > Transports.
- Select WebServices over HTTP.
- Click Change Status.
- Select Configuration > Message Types.
-
Create the following two new message type configurations:
Property Value Message type Message for external inventory system Transport WebServices over HTTP Device format Webservices URL http://hostname:9080/ExtOMSSimMediationModuleWeb/sca/InventoryServices Property Value Message type Message for external order system Transport WebServices over HTTP Device format Webservices URL http://localhost:9080/ExtOMSSimMediationModuleWeb/sca/OrderServices - Close the Administration Console.
-
Connect to the database:
- Use a database client to connect to the WebSphere Commerce database.
- On a WebSphere Commerce Developer machine, navigate to the following URL: http://localhost/webapp/wcs/admin/servlet/db.jsp
-
Execute the following SQL statement to use an external system for inventory and order
processing:
UPDATE STORE SET INVENTORYSYSTEM=-5 WHERE STORE_ID IN (SELECT STOREENT_ID FROM STOREENT WHERE IDENTIFIER='Store_Identifier' );
Where
Store_Identifier
is the value of your store identifier. For example, 'Madisons' for your consumer direct store. -
Insert records into the INVCNF and INVCNFRE tables to setup inventory configurations that apply
to items and locations.
For example, the following sample configuration applies to all items and all locations. The sample configuration enables the database cache, fetches inventory availability from the DOM system when the cached quantity is below 5, decrements cached inventory availability after orders are submitted, and updates it when the information is retrieved from the DOM system:
For more information, see Inventory availability caching, and INVCNF.INSERT INTO INVCNF (INVCNF_ID, IDENTIFIER, DESCRIPTION, PRECEDENCE, FLAGS, THRESHOLDQUANTITY, CHEXPABOVETHRES, CHEXPBELOWTHRES, CACHEPRIORITY, FALLBACKINVSTAT, FALLBACKAVAILTIME, FALLBACKINVOFFSET, QUANTITYMEASURE) values (1, 'Sample', 'Sample Configuration', 0, 30, 5, null, 0, 0, 'UAVL', null, null, 'C62'); INSERT INTO INVCNFREL (INVCNFREL_ID,INVCNF_ID,CATENTRY_ID,STORE_ID,STLOC_ID) VALUES (1, 1, null, null, null);
-
Enable the side by side integration.
-
Go to the following directory:
- WC_eardir/xml/config/com.ibm.commerce.order-fep
- Workspace_dir\xml\config\com.ibm.commerce.order-fep
- Open the wc-admin-component.xml file for editing.
-
Locate the following code:
<_config:configgrouping name="SideBySideIntegration"> <_config:property name="enable" value="N"/>
-
Set the value of the
enable
property to be"Y"
. - Save and close your file.
-
Go to the following directory:
-
Download the following files to a temporary directory:
- wc-component-client.xml (this compressed file contains the wc-component-client.xml file that is updated for inventory).
- wc-component-client.xml (this compressed file contains the wc-component-client.xml file that is updated for order).
-
Use the WebSphere Application Server standard deployment method to deploy the downloaded
wc-component-client.xml files:
-
For inventory:
- WC_eardir/xml/config/com.ibm.commerce.inventory.external/wc-component-client.xml
- workspace_dir/wc/xml/config/com.ibm.commerce.inventory.external/wc-component-client.xml
-
For order:
- WC_eardir/xml/config/com.ibm.commerce.order.external/wc-component-client.xml
- workspace_dir/wc/xml/config/com.ibm.commerce.order.external/wc-component-client.xml
-
For inventory:
- Restart your WebSphere Commerce Server: