The OrderFulfiller receives the SubmitOrder message, which marks the start of the fulfillment process. The fulfillment process relies on a persistent, durable JMS subsystem to deliver messages as they become available. There should be only one instance of an OrderFulfiller in place to receive the SubmitOrder message. The method invoked on the reception of a message is the receiveMessage method. The method will determine what type of message was sent and call the appropriate handle method for that message type.
The following methods handle the different messages:
getModificationHandler().handleModifyOrder: This method handlesModifyOrdermessages. The handling ofModifyOrdermessages is delegated to theModificationHandlerclass, which is configured as a property of theOrderFulfiller.getModificationHandler().handleModifyOrderNotification: This method deals withModifyOrdermessages. The handling ofModifyOrderNotificationmessages is delegated to theModificationHandlerclass, which is configured as a property of theOrderFulfiller.handleNewMessageType: This method is called if the types of the messages do not match up to any of the above three types. By default, this is left as an empty method for future extensibility.handleSubmitOrder: This method is called to handle allSubmitOrdermessages. It runs thehandleSubmitOrderpipeline chain. For more information, see Appendix E: Pipeline Chains.
For information on the handling of ModifyOrder and ModifyOrderNotification messages, refer to the OrderFulfillerModificationHandler Class section.

