...
Figure 2: Example Scenario of the Test Message EIP
Following are descriptions of several components of the example scenario.
...
Before digging into implementation details, let's take a look at the relationship between the example scenario and the Detour EIP by comparing their core components.
Test Message EIP (Figure 1) | Example Scenario of the Test Message EIP (Figure 2) |
---|---|
Application Messages | Simple Stock Quote Client |
Test Data Generator | Test data generator role is played by the Task Scheduler in the ESB. It creates a message after a given interval and hands over the message to the main sequence. |
Test Message Injector |
...
Main sequence injects messages it gets from Task scheduler into sendSeq , where the rest of the messages go. | |
Test Message Separator and Test Data Verifier |
...
A Filter mediator inside receiveSeq filters out the test messages and prints the outcome of the test. There's another filter in fault c to monitor any failures in sending test messages. |
Environment setup
- 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 Getting Started in the WSO2 ESB documentation.
- Start two Sample Axis2 server instances in ports 9001 and 9002. For instructions, refer to the section ESB Samples Setup - Starting Sample Back-End Services in the WSO2 ESB documentation.
ESB configuration
Start the ESB server and log into its management console UI (https:
//localhost:9443/carbon
). In the management console, navigate to Main Menu, click Service Bus and then Source View. Next, copy and paste the following configuration, which helps you explore the example scenario, to the source view.
Anchor | ||||
---|---|---|---|---|
|
...