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 handlesModifyOrder
messages. The handling ofModifyOrder
messages is delegated to theModificationHandler
class, which is configured as a property of theOrderFulfiller
.getModificationHandler().handleModifyOrderNotification
– This method deals withModifyOrder
messages. The handling ofModifyOrderNotification
messages is delegated to theModificationHandler
class, 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 allSubmitOrder
messages. It runs thehandleSubmitOrder
pipeline chain. For more information, see Appendix F, Pipeline Chains.
For information on the handling of ModifyOrder
and ModifyOrderNotification
messages, refer to the OrderFulfillerModificationHandler Class section.