Complete the following steps to customize the NewInboundMessage command to process messages that you have created:
- Extend the NewInboundMessage command. For information on extending the NewInboundMessage command, see the WebSphere Commerce Programming Guide and Tutorials.
- To receive the inbound message, use the getMessage() method of the command, which returns the message as a String.
- Implement the performExecute() method of the command. Inside the method, place the programming statements that process your inbound message.
- 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'