title: How do I cluster ServiceMix?
body: <p>I am looking for some initial pointers on how to cluster a ServiceMix solution. Basically what I need is:</p>
  
  <ul>
  <li>having 2 (or more) ServiceMix instances serving my routing needs and sharing the load</li>
  <li>if one instance fails, other(s) continue to serve</li>
  <li>if the failed one is brought back to life, it joins the party</li>
  </ul>
  
  <p>Searching for information confuses me since</p>
  
  <ul>
  <li>some references (eg. <a href="http://trenaman.blogspot.fi/2010/04/four-things-you-need-to-know-about-new.html">http://trenaman.blogspot.fi/2010/04/four-things-you-need-to-know-about-new.html</a>) talk about "JBI cluster engine". I don't want to use JBI. Support for it is deprecated. Is there a separate "Non-JBI cluster engine" or what is going on...?</li>
  <li>I see a lot of mentions about "DOSGi". Do I need to worry my simple head with all that if I want to achieve clustered ServiceMix?</li>
  </ul>
  
  <p>My solution will probably have a few bundles that communicate with each other using JMS queues. Should I in that case <strong>just have 2 independent ServiceMix instances</strong> (who do not know of each other). Wouldn't that be the simplest option? I see some support for a failover configuration (<a href="http://servicemix.apache.org/docs/4.5.x/users-guide/failover.html">http://servicemix.apache.org/docs/4.5.x/users-guide/failover.html</a>) but what benefits would that really give (am I missing something)? Also this failover configuration does not help with load balancing since just one instance is serving requests. </p>