This section explains, through an example scenario, how the Message Expiration EIP can be implemented using WSO2 ESB. The following topics are covered:
Table of Contents |
---|
...
Message Expiration EIP (Figure 1) | Message Expiration Example Scenario (Figure 2) |
---|---|
Sender | Stock Quote Client |
ChannelProxyService | Proxy Service |
Dead Letter Channel | Fault Sequence |
Intended Receiver | Stock Quote Service Instance |
...
Simulating the sample scenario
- Send a request using the Stock Quote client to WSO2 ESB in the following manner. For information on the Stock Quote client, refer to the Sample Clients section in the WSO2 ESB documentation.
ant stockquote -Dtrpurl=http://localhost:8280/services/MessageExpirationProxy -Dsymbol=Foo
- Notice the expected response for the request. Next, drop the Axis2 server instance and restart the ESB. The endpoint will time out and be suspended after the timeout period, causing a fault condition.
...