Adding Persistence to Synapse - The Queuing Model

There is a new addition to the list of items in the ESB tutorial. Danushka has written an article on adding persistence to Apache Synapse using a queuing model.

The summary of this article is:

Apache Synapse is designed to be a simple, lightweight and a high performance Enterprise Service Bus (ESB) and supports a number of functions out-of-the-box. But Synapse does not have any mechanism to support message persistence within it and hence one might hesitate to use it in his mission-critical application amidst its rich set of features. But we can add persistence to Synapse easily by using its JMS transport, a JMS provider and a combination of two proxy services (say Proxy1 and Proxy2). Proxy1 dumps all the incoming messages in a JMS queue and Proxy2 reads messages off that queue and pump them through its mediator chain. We get a JMS provider that supports persistence so that our JMS queue handles message persistence. Here ActiveMQ is our preferred JMS provider. Not only does ActiveMQ support persistence, it also supports creating embedded brokers so that Synapse can talk to the ActiveMQ broker through an in-memory communication channel.

Comments