Customizing the NewInboundMessage command

Complete the following steps to customize the NewInboundMessage command to process messages that you have created:

  1. Extend the NewInboundMessage command. For information on extending the NewInboundMessage command, see the WebSphere Commerce Programming Guide and Tutorials.
  2. To receive the inbound message, use the getMessage() method of the command, which returns the message as a String.
  3. Implement the performExecute() method of the command. Inside the method, place the programming statements that process your inbound message.
  4. Use the following SQL statement to register your new extended command by updating the CMDREG table in the WebSphere Commerce database:
    update cmdreg set classname='yourCommandClassName' 
    where interfacename='com.ibm.commerce.messaging.commands.NewInboundMessageCmd'