Configuring the CheckAvailabilityBE message

To configure the CheckInventoryAvailabilityBE message to enable WebSphere Commerce to use the send-receive message service, do the following:

  1. Determine which store uses the CheckInventoryAvailabilityBE message, and identify the STOREENT_ID from the STOREENT table. 
    Note: If all stores in the site are using the CheckInventoryAvailabilityBE message, the STOREENT_ID is 0.

    Before you continue, decide on one of the following actions:

    • If your STORENT_ID is 0, proceed to step 3.
    • If your STORENT_ID is not 0, proceed to step 2.
  2. Modify the 0 in the following code found in wcs.Msgtypes.sql:
    insert into cmdreg (STOREENT_ID,INTERFACENAME,CLASSNAME,TARGET) values (0,
    'com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmd',
    'com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityBECmdImpl','Local');
    update cmdreg set classname =  'com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityBECmdImpl',
     target = 'Local' where storeent_id = 0 and
     interfacename = 'com.ibm.commerce.fulfillment.commands.CheckInventoryAvailabilityCmd';
    
    and replace
    update storeitem set TRACKINVENTORY='N' where TRACKINVENTORY='Y
    
  3. with
    update storeitem set TRACKINVENTORY = 'N' where  storeent_id=<STOREENT_ID>
    
  4. Define the properties of the CheckInventoryAvailabilityBE message by doing the following:
    • Logon to the WebSphere Commerce Administration Console.
    • Select site or store configuration.
    • Under the Configuration menu, select Message Types. The Message Transport Assignment page displays.
    • Click New.
    • Select Checks inventory availability from a backend system from the Message Type drop-down list.
    • Enter 0 in the Message Severity field.
    • Select Adapter for CrossWorlds in the Transport drop-down list.
    • Select Standard Device Format in the Device Format drop down list and click Next.
    • Update any fields needed as well as the following parameters:
      collaborationName
      the collaboration name which is used during
      the interaction between WebSphere Commerce and the IBM CrossWorlds Interchange Server.
      verb
      the action verb associated with the collaboration, such as create, retrieve, update, and delete.
      mode
      the interaction mode. Since the IBM  CrossWorlds adapter is using send and receive mode, this value must be set to 0.
      port
      the IBM CrossWorlds adapter port, for example port=From.
    • Click Finish.

Notes: