O'Reilly logo

Instant Apache ServiceMix How-to by Henryk Konsek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Clustering ServiceMix (Become an expert)

This recipe will guide you through the basic concepts of clustering ServiceMix using the JMS and competing consumers pattern. Clustering is the process of distributing an application's workload among multiple servers.

Getting ready

Let's assume that your integration solution reads from several sources of messages and then processes them using some custom processing class:

 1. public class NonClusteredRoute extends RouteBuilder { 2. 3. public void configure() throws Exception { 4. 5. from("direct:processor").process(new BusinessProcessor()).to("jms:processedMessages"); 6. 7. from("file:/home/myapp/inbox").to("direct:processor"); 8. from("jms:incomingMessages").to("direct:processor"); 9. from("pop3://username@mymailserver.com?password=secret"). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required