Hi Sharon, By using JMS or JCA flow, you'll be using ActiveMQ for clustering. There are a bunch of ways to configure ActiveMQ and ServiceMix's connection to it, from embedded brokers doing discover to a remote cluster of brokers and explicit connections.
For development, we typically start a broker and do an explicit tcp connection to it (so that our development servicemix's don't accidentally all cluster together). So, if you're started a broker on 192.168.1.55, you can then configure both servicemix instances with a flowName of: jms?jmsURL=tcp://192.168.1.55:61616 I'd recommend having a look through both the ServiceMix and ActiveMQ docs for your production deployment (e.g. do you want to use a Master/Slave configuration for high availability, how many boxes would you like to use, do you want a cluster of Master/Slaves etc.) cheers, j. On 7/10/06, Sharon Yin <[EMAIL PROTECTED]> wrote:
Thanks, Jamie. But I'm still not quite sure about the scope of Cluster. if I set the two servicemix flowname into "jms", how could they find each other? Do they have to set in the same IP scope like "192.168.1.55" and "192.168.1.56" or else? What I mean is how to define a cluster is it done in servicemix configuration or need to use a hardware cluster configuration? Sharon. ________________________________ From: "Jamie McCrindle" <[EMAIL PROTECTED]> Reply-To: [email protected] To: [email protected] Subject: Re: How to connect two servicemix which is running on different computer? Date: Mon, 10 Jul 2006 09:47:21 +0100 >Hi Sharon, > >If you use jmsflow or jca flow, you should be able to connect >servicemix instances across multiple boxes. have a look at the >cluster >example in the servicemix download and see the clustering >documentation here: http://www.servicemix.org/site/clustering.html > >regards, >Jamie. > >On 7/10/06, Sharon Yin <[EMAIL PROTECTED]> wrote: >> >>Hi, all >> >>For now, we have two servicemix running on different computer, >>a clientA is going to connect into one servicemix ,looking for a >>serviceA, >>but the serviceA is bound in another servicemix running on another >>computer, >>is there a mechanism in servicemix that can find the other >>servicemix and >>transfer the message from clientA? or do we need to write a SE or >>BC to do >>the work? >> >>thanks. >> >>Sharon. >> >>10/07/2006 >> >>________________________________ >> 使用 MSN Messenger 与联机的朋友进行交流 ________________________________ 请使用 MSN Messenger 与联机的朋友进行交流
