You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by greatSM <bz...@ciber.com> on 2006/04/14 20:02:11 UTC
cluster, two machines
How can I make "cluster" work for two machines? (3.0-SNAPSHOT)
I updated file: servicemix-3.0-SNAPSHOT\conf\activemq.xml in both nodes with
<networkConnector uri="static://(tcp://ip-1:61616,tcp://ip-2:61616)"/>
instead of
<networkConnector uri="multicast://default"/>
Looks this is not enough.
Thanks for your help.
-- greatSM.
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3920797
Sent from the ServiceMix - User forum at Nabble.com.
Re: cluster, two machines
Posted by Guillaume Nodet <gn...@gmail.com>.
You should try with servicemix 3.0.
I'm quite sure it will work much better...
Cheers,
Guillaume Nodet
On 4/28/06, william1104 <wi...@gmail.com> wrote:
>
> Hi Guilaume,
>
> Thanks for the guidance. I have modified the servicemix-poller.xml and
> servicemix-writer.xml to make the sample also works with servicemix-2.0.2
>
> servicemix-poller-1.xml:
> ==============
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
> xmlns="http://xbean.org/schemas/spring/1.0"
> xmlns:spring="http://xbean.org/schemas/spring/1.0"
> xmlns:sm="http://servicemix.org/config/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
> ../../conf/spring-beans.xsd
> http://servicemix.org/config/1.0
> ../../conf/servicemix.xsd"
> xmlns:foo="http://servicemix.org/demo/">
>
>
> <!-- the JBI container -->
> <sm:container id="jbi" name="poller-1" flowName="jms" dumpStats="true"
> statsInterval="10"
> useMBeanServer="false" createMBeanServer="false" >
>
> <sm:activationSpecs>
>
> <!-- Look for files in the inbox directory -->
> <sm:activationSpec componentName="filePoller"
> destinationService="foo:fileSender" service="foo:filePoller">
> <sm:component>
> <bean xmlns="http://xbean.org/schemas/spring/1.0"
> class="org.servicemix.components.file.FilePoller">
> <property name="workManager" ref="workManager" />
> <property name="file" value="inbox" />
> <property name="period" value="1000" />
> </bean>
> </sm:component>
> </sm:activationSpec>
> </sm:activationSpecs>
> </sm:container>
>
> <!-- the work manager (thread pool) for this container -->
> <bean id="workManager"
> class="org.jencks.factory.WorkManagerFactoryBean">
> <property name="threadPoolSize" value="30" />
> </bean>
> </beans>
>
> servicemix-poller-2.xml:
> ==============
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
> xmlns="http://xbean.org/schemas/spring/1.0"
> xmlns:spring="http://xbean.org/schemas/spring/1.0"
> xmlns:sm="http://servicemix.org/config/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
> ../../conf/spring-beans.xsd
> http://servicemix.org/config/1.0
> ../../conf/servicemix.xsd"
> xmlns:foo="http://servicemix.org/demo/">
>
>
> <!-- the JBI container -->
> <sm:container id="jbi" name="poller-2" flowName="jms" dumpStats="true"
> statsInterval="10"
> useMBeanServer="false" createMBeanServer="false" >
>
> <sm:activationSpecs>
>
> <!-- Look for files in the inbox directory -->
> <sm:activationSpec componentName="filePoller"
> destinationService="foo:fileSender" service="foo:filePoller">
> <sm:component>
> <bean xmlns="http://xbean.org/schemas/spring/1.0"
> class="org.servicemix.components.file.FilePoller">
> <property name="workManager" ref="workManager" />
> <property name="file" value="inbox" />
> <property name="period" value="1000" />
> </bean>
> </sm:component>
> </sm:activationSpec>
> </sm:activationSpecs>
> </sm:container>
>
> <!-- the work manager (thread pool) for this container -->
> <bean id="workManager"
> class="org.jencks.factory.WorkManagerFactoryBean">
> <property name="threadPoolSize" value="30" />
> </bean>
> </beans>
>
> servicemix-writer-1.xml:
> ==============
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
> xmlns="http://xbean.org/schemas/spring/1.0"
> xmlns:spring="http://xbean.org/schemas/spring/1.0"
> xmlns:sm="http://servicemix.org/config/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
> ../../conf/spring-beans.xsd
> http://servicemix.org/config/1.0
> ../../conf/servicemix.xsd"
> xmlns:foo="http://servicemix.org/demo/">
> <!-- the JBI container -->
> <sm:container id="jbi" name="writer-1" flowName="jms" dumpStats="true"
> statsInterval="10"
> useMBeanServer="false" createMBeanServer="false" >
>
> <sm:activationSpecs>
>
> <!-- Write files to the outbox directory -->
> <sm:activationSpec componentName="fileSender"
> service="foo:fileSender">
> <sm:component>
> <bean xmlns="http://xbean.org/schemas/spring/1.0"
> class="org.servicemix.components.file.FileWriter">
> <property name="directory" value="outbox-1" />
> <property name="marshaler">
> <bean
> class="org.servicemix.components.util.DefaultFileMarshaler">
> <property name="fileName">
> <bean
> class="org.servicemix.expression.JaxenStringXPathExpression">
> <constructor-arg
> value="concat('sample_', /sample/@id, '.xml')" />
> </bean>
> </property>
> </bean>
> </property>
> </bean>
> </sm:component>
> </sm:activationSpec>
>
> </sm:activationSpecs>
> </sm:container>
>
> <!-- the work manager (thread pool) for this container -->
> <bean id="workManager"
> class="org.jencks.factory.WorkManagerFactoryBean">
> <property name="threadPoolSize" value="30" />
> </bean>
> </beans>
>
> servicemix-writer-2.xml:
> ===============
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
> xmlns="http://xbean.org/schemas/spring/1.0"
> xmlns:spring="http://xbean.org/schemas/spring/1.0"
> xmlns:sm="http://servicemix.org/config/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
> ../../conf/spring-beans.xsd
> http://servicemix.org/config/1.0
> ../../conf/servicemix.xsd"
> xmlns:foo="http://servicemix.org/demo/">
> <!-- the JBI container -->
> <sm:container id="jbi" name="writer-2" flowName="jms" dumpStats="true"
> statsInterval="10"
> useMBeanServer="false" createMBeanServer="false" >
>
> <sm:activationSpecs>
>
> <!-- Write files to the outbox directory -->
> <sm:activationSpec componentName="fileSender"
> service="foo:fileSender">
> <sm:component>
> <bean xmlns="http://xbean.org/schemas/spring/1.0"
> class="org.servicemix.components.file.FileWriter">
> <property name="directory" value="outbox-2" />
> <property name="marshaler">
> <bean
> class="org.servicemix.components.util.DefaultFileMarshaler">
> <property name="fileName">
> <bean
> class="org.servicemix.expression.JaxenStringXPathExpression">
> <constructor-arg
> value="concat('sample_', /sample/@id, '.xml')" />
> </bean>
> </property>
> </bean>
> </property>
> </bean>
> </sm:component>
> </sm:activationSpec>
>
> </sm:activationSpecs>
> </sm:container>
>
> <!-- the work manager (thread pool) for this container -->
> <bean id="workManager"
> class="org.jencks.factory.WorkManagerFactoryBean">
> <property name="threadPoolSize" value="30" />
> </bean>
> </beans>
>
> However, seems that this sample is not target to make the servicemix become
> HA. Once a writer is down, pollers will lose the connectivity to it forever,
> even if the writer will be up in a later time.
>
> May I know where we could find the sample on building a HA servicemix for
> version 2.0.2 ? It will help us lessen our concern on using servicemix in
> production environment. :)
>
> Thanks and regards,
> William
> --
> View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a4136893
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Re: cluster, two machines
Posted by william1104 <wi...@gmail.com>.
Hi Guilaume,
Thanks for the guidance. I have modified the servicemix-poller.xml and
servicemix-writer.xml to make the sample also works with servicemix-2.0.2
servicemix-poller-1.xml:
==============
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xmlns:sm="http://servicemix.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
../../conf/spring-beans.xsd
http://servicemix.org/config/1.0
../../conf/servicemix.xsd"
xmlns:foo="http://servicemix.org/demo/">
<!-- the JBI container -->
<sm:container id="jbi" name="poller-1" flowName="jms" dumpStats="true"
statsInterval="10"
useMBeanServer="false" createMBeanServer="false" >
<sm:activationSpecs>
<!-- Look for files in the inbox directory -->
<sm:activationSpec componentName="filePoller"
destinationService="foo:fileSender" service="foo:filePoller">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.file.FilePoller">
<property name="workManager" ref="workManager" />
<property name="file" value="inbox" />
<property name="period" value="1000" />
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- the work manager (thread pool) for this container -->
<bean id="workManager"
class="org.jencks.factory.WorkManagerFactoryBean">
<property name="threadPoolSize" value="30" />
</bean>
</beans>
servicemix-poller-2.xml:
==============
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xmlns:sm="http://servicemix.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
../../conf/spring-beans.xsd
http://servicemix.org/config/1.0
../../conf/servicemix.xsd"
xmlns:foo="http://servicemix.org/demo/">
<!-- the JBI container -->
<sm:container id="jbi" name="poller-2" flowName="jms" dumpStats="true"
statsInterval="10"
useMBeanServer="false" createMBeanServer="false" >
<sm:activationSpecs>
<!-- Look for files in the inbox directory -->
<sm:activationSpec componentName="filePoller"
destinationService="foo:fileSender" service="foo:filePoller">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.file.FilePoller">
<property name="workManager" ref="workManager" />
<property name="file" value="inbox" />
<property name="period" value="1000" />
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- the work manager (thread pool) for this container -->
<bean id="workManager"
class="org.jencks.factory.WorkManagerFactoryBean">
<property name="threadPoolSize" value="30" />
</bean>
</beans>
servicemix-writer-1.xml:
==============
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xmlns:sm="http://servicemix.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
../../conf/spring-beans.xsd
http://servicemix.org/config/1.0
../../conf/servicemix.xsd"
xmlns:foo="http://servicemix.org/demo/">
<!-- the JBI container -->
<sm:container id="jbi" name="writer-1" flowName="jms" dumpStats="true"
statsInterval="10"
useMBeanServer="false" createMBeanServer="false" >
<sm:activationSpecs>
<!-- Write files to the outbox directory -->
<sm:activationSpec componentName="fileSender"
service="foo:fileSender">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.file.FileWriter">
<property name="directory" value="outbox-1" />
<property name="marshaler">
<bean
class="org.servicemix.components.util.DefaultFileMarshaler">
<property name="fileName">
<bean
class="org.servicemix.expression.JaxenStringXPathExpression">
<constructor-arg
value="concat('sample_', /sample/@id, '.xml')" />
</bean>
</property>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- the work manager (thread pool) for this container -->
<bean id="workManager"
class="org.jencks.factory.WorkManagerFactoryBean">
<property name="threadPoolSize" value="30" />
</bean>
</beans>
servicemix-writer-2.xml:
===============
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xmlns:sm="http://servicemix.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
../../conf/spring-beans.xsd
http://servicemix.org/config/1.0
../../conf/servicemix.xsd"
xmlns:foo="http://servicemix.org/demo/">
<!-- the JBI container -->
<sm:container id="jbi" name="writer-2" flowName="jms" dumpStats="true"
statsInterval="10"
useMBeanServer="false" createMBeanServer="false" >
<sm:activationSpecs>
<!-- Write files to the outbox directory -->
<sm:activationSpec componentName="fileSender"
service="foo:fileSender">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.file.FileWriter">
<property name="directory" value="outbox-2" />
<property name="marshaler">
<bean
class="org.servicemix.components.util.DefaultFileMarshaler">
<property name="fileName">
<bean
class="org.servicemix.expression.JaxenStringXPathExpression">
<constructor-arg
value="concat('sample_', /sample/@id, '.xml')" />
</bean>
</property>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- the work manager (thread pool) for this container -->
<bean id="workManager"
class="org.jencks.factory.WorkManagerFactoryBean">
<property name="threadPoolSize" value="30" />
</bean>
</beans>
However, seems that this sample is not target to make the servicemix become
HA. Once a writer is down, pollers will lose the connectivity to it forever,
even if the writer will be up in a later time.
May I know where we could find the sample on building a HA servicemix for
version 2.0.2 ? It will help us lessen our concern on using servicemix in
production environment. :)
Thanks and regards,
William
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a4136893
Sent from the ServiceMix - User forum at Nabble.com.
Re: cluster, two machines
Posted by Guillaume Nodet <gn...@gmail.com>.
You should download a 3.0 distribution and try the samples that are inside.
http://cvs.apache.org/repository/incubator-servicemix/distributions/incubator-servicemix-3.0-SNAPSHOT.tar.gz
Else you will have to change package names and namespaces that appear
in the xml configuration file to servicemix.org instead of
servicemix.apache.org
Cheers,
Guillaume Nodet
On 4/27/06, william1104 <wi...@gmail.com> wrote:
>
> Hi Guilaume,
>
> I have tried to execute the sample provided in
> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/cluster/
> with servicemix-2.0.2
>
> However, got the following exceptions:
>
> $ ../../bin/servicemix servicemix-writer.xml
>
> ServiceMix ESB: 2.0.2
>
> Loading ServiceMix from file: servicemix-writer.xml
> Caught: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> bean named 'jbi' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [workManager]; root of BeanFactory hierarchy
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'jbi' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [workManager]; root of BeanFactory hierarchy
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
> at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
> at org.servicemix.Main.main(Main.java:79)
>
>
> $ ../../bin/servicemix servicemix-poller.xml
> ServiceMix ESB: 2.0.2
>
> Loading ServiceMix from file: servicemix-poller.xml
> Caught: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> bean named 'jbi' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [workManager]; root of BeanFactory hierarchy
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'jbi' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [workManager]; root of BeanFactory hierarchy
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
> at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
> at org.servicemix.Main.main(Main.java:79)
>
>
> May I know whether the exception I encountered is due to incorrect
> servicemix version?
>
> Thanks and regards,
> William
> --
> View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a4123974
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Re: cluster, two machines
Posted by william1104 <wi...@gmail.com>.
Hi Guilaume,
I have tried to execute the sample provided in
http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/cluster/
with servicemix-2.0.2
However, got the following exceptions:
$ ../../bin/servicemix servicemix-writer.xml
ServiceMix ESB: 2.0.2
Loading ServiceMix from file: servicemix-writer.xml
Caught: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'jbi' is defined:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [workManager]; root of BeanFactory hierarchy
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'jbi' is defined:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [workManager]; root of BeanFactory hierarchy
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
at org.servicemix.Main.main(Main.java:79)
$ ../../bin/servicemix servicemix-poller.xml
ServiceMix ESB: 2.0.2
Loading ServiceMix from file: servicemix-poller.xml
Caught: org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'jbi' is defined:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [workManager]; root of BeanFactory hierarchy
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'jbi' is defined:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [workManager]; root of BeanFactory hierarchy
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
at org.servicemix.Main.main(Main.java:79)
May I know whether the exception I encountered is due to incorrect
servicemix version?
Thanks and regards,
William
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a4123974
Sent from the ServiceMix - User forum at Nabble.com.
Re: cluster, two machines
Posted by gnodet <gn...@gmail.com>.
This is then more about how to cluster activemq, i guess.
You may want to dig through http://activemq.org web site.
Take a look at
http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/ws-notification/
example that is clustered, or a simplier one
http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/cluster/
Cheers,
Guillaume Nodet
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3923289
Sent from the ServiceMix - User forum at Nabble.com.
Re: cluster, two machines
Posted by greatSM <bz...@ciber.com>.
Guillaume,
Yes, jms flow is using. -- Thanks for your reply.
-- greatSM
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3922836
Sent from the ServiceMix - User forum at Nabble.com.
Setting DestinationService
Posted by Soumadeep <so...@infravio.com>.
Hi Guillaume,
I was wondering if changing destinations programmatically at runtime is
advisable by doing
((ComponentContextImpl)this.getContext()).getActivationSpec().setDestination
Service(qname);
Thnaks
Soumadeep
-----Original Message-----
From: Guillaume Nodet [mailto:gnodet@gmail.com]
Sent: Saturday, April 15, 2006 12:18 AM
To: servicemix-users@geronimo.apache.org
Subject: Re: cluster, two machines
Are you using a jms or jca flow in ServiceMix ?
Cheers,
Guillaume Nodet
On 4/14/06, greatSM <bz...@ciber.com> wrote:
>
> How can I make "cluster" work for two machines? (3.0-SNAPSHOT)
> I updated file: servicemix-3.0-SNAPSHOT\conf\activemq.xml in both nodes
with
>
> <networkConnector uri="static://(tcp://ip-1:61616,tcp://ip-2:61616)"/>
> instead of
> <networkConnector uri="multicast://default"/>
>
> Looks this is not enough.
> Thanks for your help.
> -- greatSM.
>
> --
> View this message in context:
http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3920797
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Re: cluster, two machines
Posted by Guillaume Nodet <gn...@gmail.com>.
Are you using a jms or jca flow in ServiceMix ?
Cheers,
Guillaume Nodet
On 4/14/06, greatSM <bz...@ciber.com> wrote:
>
> How can I make "cluster" work for two machines? (3.0-SNAPSHOT)
> I updated file: servicemix-3.0-SNAPSHOT\conf\activemq.xml in both nodes with
>
> <networkConnector uri="static://(tcp://ip-1:61616,tcp://ip-2:61616)"/>
> instead of
> <networkConnector uri="multicast://default"/>
>
> Looks this is not enough.
> Thanks for your help.
> -- greatSM.
>
> --
> View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3920797
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Re: cluster, two machines
Posted by greatSM <bz...@ciber.com>.
Thanks. We are trying to create "cluster" of brokers so that we can
implement cluster wide topic that are visible from any client connected to
any of these brokers. We would also like to acheive load balancing.
--
View this message in context: http://www.nabble.com/cluster%2C-two-machines-t1450987.html#a3952342
Sent from the ServiceMix - User forum at Nabble.com.
Re: cluster, two machines
Posted by Bruce Snyder <br...@gmail.com>.
On 4/14/06, greatSM <bz...@ciber.com> wrote:
>
> How can I make "cluster" work for two machines? (3.0-SNAPSHOT)
> I updated file: servicemix-3.0-SNAPSHOT\conf\activemq.xml in both nodes with
>
> <networkConnector uri="static://(tcp://ip-1:61616,tcp://ip-2:61616)"/>
> instead of
> <networkConnector uri="multicast://default"/>
>
> Looks this is not enough.
> Thanks for your help.
What is it that you're trying to achieve exactly (e.g., failover, load
balancing, etc.)? If we know this it will be easier to help you to
achieve your goals.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/
Re: cluster, two machines
Posted by Rob Davies <ra...@gmail.com>.
can you try the network uri of
static:failover:(tcp://127.0.0.1:61616,tcp://127.0.0.1:61626)
the network connectors need failover otherwise they will fail on the
first attempt to connect (unless you can start both servicemix
instances at exactly the same time)
cheers,
Rob
On 14 Apr 2006, at 19:02, greatSM wrote:
>
> How can I make "cluster" work for two machines? (3.0-SNAPSHOT)
> I updated file: servicemix-3.0-SNAPSHOT\conf\activemq.xml in both
> nodes with
>
> <networkConnector uri="static://(tcp://ip-1:61616,tcp://ip-2:61616)"/>
> instead of
> <networkConnector uri="multicast://default"/>
>
> Looks this is not enough.
> Thanks for your help.
> -- greatSM.
>
> --
> View this message in context: http://www.nabble.com/cluster%2C-two-
> machines-t1450987.html#a3920797
> Sent from the ServiceMix - User forum at Nabble.com.
>