...
The diagram below depicts how to simulate the example scenario using WSO2 ESB.
Figure 2: Example Scenario scenario of the Event-Driven Consumer EIP
...
- Download and install WSO2 ESB from http://wso2.com/products/enterprise-service-bus. For a list of prerequisites and step-by-step installation instructions, refer to see the Installation Guide in the WSO2 ESB documentation.
- Start two sample Axis2 server. For instructions, refer to the section see Setting Up the ESB Samples - Starting the Axis2 server in the WSO2 ESB documentation.
- Follow the steps below to create an event.
- Start the ESB server and log into its management console UI (
https:
//localhost:9443/carbon
). - Select the Topics menu from the Main menu and then select the Add sub menu.
- Enter
EventConsumerTopic
as the name for the topic, and then click Add Topic. - Click the newly created topic EventConsumerTopic in the topic browser tree and click Subscribe to create a static subscription.
- Enter the value
http://localhost:9000/services/SimpleStockQuoteService
in the Event Sink URL field and click Subscribe.
- Start the ESB server and log into its management console UI (
...
- event [line 13 in ESB config] - Allows you to define a set of subscribers that will receive messages when the topic subscribed to receives a message. Also, see Eventing.