What exactly are the steps?
I need to properly setup multiple instances of SMX 4 for clustering, and
it's not clear from the documentation I'm looking at
(http://fusesource.com/docs/esb/4.1/migration/ESBMigrationCluster.html).
I understand that if my instances are running on the same host, the activemq
and port numbers must be unique. Is there anything more beyond the changes
in the activemq.xml? In the FUSE doc it mentions a 'Default Cluster Engine
Configuration' and shows the following XML, does this need to be added to
the activemq.xml ?
<bean id="clusterEngine"
class="org.apache.servicemix.jbi.cluster.engine.ClusterEngine">
<property name="pool">
<bean
class="org.apache.servicemix.jbi.cluster.requestor.ActiveMQJmsRequestorPool">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destinationName" value="${destinationName}" />
</bean>
</property>
<property name="name" value="${clusterName}" />
</bean>
<osgi:list id="clusterRegistrations"
interface="org.apache.servicemix.jbi.cluster.engine.ClusterRegistration"
cardinality="0..N">
<osgi:listener ref="clusterEngine" bind-method="register"
unbind-method="unregister" />
</osgi:list>
<osgi:reference id="connectionFactory"
interface="javax.jms.ConnectionFactory" />
<osgi:service ref="clusterEngine">
<osgi:interfaces>
<value>org.apache.servicemix.nmr.api.Endpoint</value>
<value>org.apache.servicemix.nmr.api.event.Listener</value>
<value>org.apache.servicemix.nmr.api.event.EndpointListener</value>
<value>org.apache.servicemix.nmr.api.event.ExchangeListener</value>
</osgi:interfaces>
<osgi:service-properties>
<entry key="NAME" value="${clusterName}" />
</osgi:service-properties>
</osgi:service>
<osgix:cm-properties id="clusterProps"
persistent-id="org.apache.servicemix.jbi.cluster.config">
<prop key="clusterName">${servicemix.name}</prop>
<prop key="destinationName">org.apache.servicemix.jbi.cluster</prop>
</osgix:cm-properties>
<ctx:property-placeholder properties-ref="clusterProps" />
Thanks very much,
Bret
--
View this message in context:
http://old.nabble.com/How-do-I-configure-a-cluster-in-Servicemix-4.x---tp28705459p28705459.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.