Sunday, 18 January 2015

OrderSubmitEvent in Websphere Commerce



Disabling OrderSubmitEvent  for Dom Inventory in Websphere  Commerce

Open wc-server.xml and find the below component.
<component
compClassName="com.ibm.commerce.event.impl.ECEventEnableComponent"
enable="true" name="OrderSubmit Event">
<property display="false">
<event name="OrderSubmit"/>
</property>
</component>

Set the value of the enable parameter to false.By doing this change BUSEVENT table won’t get populated when the corresponding event is triggered.

Making OrderSubmitEvent  as asynchronous in Websphere commerce

To make the events asynchronous add the priority attribute to the event in wc-server.xml as below.

<component    compClassName="com.ibm.commerce.event.impl.ECEventEnableComponent"
enable="true" name="OrderSubmit Event" priority="LOW">
<property display="false">
<event name="OrderSubmit"/>
</property>
</component>

Priority can take the three values as HIGH, MEDIUM and LOW.
HIGH – This will make the event as  synchronous and will run in the same transaction as the event initiator.
MEDIUM – This will make the event as asynchronous and immediately picked by the event listener. 
LOW – This will make the event run with some delay as per the scheduler run time and will be processed in a different transaction. 



No comments:

Post a Comment