Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Figure 1: Guaranteed Delivery EIP

...

Sample scenario

This example is a stock quote service where a stock quote request is sent to a specific endpoint when the receiver is offline. An Axis2 server acts as the receiver. The ESB profile stores the request message in a JMS message store provided by the ESB profile. In this scenario a Message Broker acts as the JMS message store. Here, the Message Broker can either be the Message Broker profile of WSO2 EI or ActiveMQ. 
The ESB profile periodically checks whether the receiver is online using a Message Forwarding Processor and delivers the message to the endpoint when the receiver comes online.

...

Guaranteed Delivery EIP (Figure 1)Guaranteed Delivery Example Scenario (Figure 2)
SenderStock Quote Client
StoreMessage Store
ReceiverStock Quote Service Instance

...

Setting up the environment

  1. Download and install the ESB profile of WSO2 Enterprise Integrator (EI). For a list of prerequisites and step-by-step installation instructions, go to Installing the Product in WSO2 EI Documentation.
  2. Start an instance of Sample Axis2 server. For instructions, go to Starting the Axis2 server in WSO2 EI Documentation.
  3. Deploy the back-end service SimpleStockQuoteService. For instructions on deploying sample back-end services, go to Deploying sample back-end services in WSO2 EI Documentation.
  4. Start the Message Broker profile of WSO2 EI (or ActiveMQ). For instructions, go to Starting the Message Broker profile in WSO2 EI Documentation.
  5. Start the ESB profile and log in to its Management Console. For instructions, see Starting the ESB profile in WSO2 EI Documentation.
  6. In the Management Console, navigate to the Main menu and click Source View in the Service Bus section. 
  7. Click the required tab based on the Message Broker you are using, and then copy and paste the relevant configuration to the source view.
    Anchor
    step4
    step4

...

[2017-11-14 19:04:52,417] [EI-Core]  INFO - LogMediator Standard :: Stock price = $178.85450091915658 


How the implementation works

...