For the activemq configuration in Servicemix (activemq.xml), I used

<amq:transportConnectors>       
       <amq:transportConnector name="openwire"
uri="tcp://${activemq.orsesb.host}:${activemq.orsesb.port}?wireFormat.maxInactivityDuration=0&amp;soTimeout=60000"
/>
</amq:transportConnectors>

<amq:networkConnectors>
          <!-- Master master configuration -->
          <amq:networkConnector name="host1-2-host2"
uri="static://(tcp://${activemq.orsesb.host}:${activemq.orsesb.port},tcp://${activemq.orsesb.host1}:${activemq.orsesb.port1}?wireFormat.cacheEnabled=false&amp;wireFormat.maxInactivityDuration=0&amp;wireFormat.tightEncodingEnabled=true)?maxReconnectDelay=1000"/>
</amq:networkConnectors>

where activemq.orsesb.host and activemq.orsesb.port is the first servicemix
instance and activemq.orsesb.host1 and activemq.orsesb.port1 is the second
SMX instance with same IP but different ports.

For the remote client publishing/subscribing 

I used this URL

failover:(tcp://<<Activemq-IP1>>:<<Port1>>,tcp://<<Activemq-IP2>>:<<Port2>>)?randomize=false

-subh


hans couder wrote:
> 
> Hi subh,
> 
> What did you use?
> 
> Did you try with <amq:networkConnector
> uri="static://(tcp://yourip:61616,tcp://yourip:61617)"/> ?
> 
> instead of amq:transportConnector?
> 
> Regards,
> 
> Hans Couder
> 
> 
> 
> 
> 2010/3/11 subh <[email protected]>:
>>
>> What URL should a remote client use to connect to a network of brokers
>> configured on Servicemix. I am using same IP but different ports.
>>
>> Based on this page
>>
>> http://activemq.apache.org/networks-of-brokers.html
>>
>> I have configured the URL as
>>
>> static:(tcp://master1.IP:61616,tcp://master1.IP:61617)
>>
>> But I get this exception when the client tries to send message
>>
>> javax.jms.JMSException: Uncategorized exception occured during JMS
>> processing; nested exception is javax.jms.JMSException: Could not create
>> Transport. Reason: java.io.IOException: Transport scheme NOT recognized:
>> [static];
>>
>> Thanks..
>> --
>> View this message in context:
>> http://old.nabble.com/Client-URL-for-a-network-of-brokers-tp27866523p27866523.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Client-URL-for-a-network-of-brokers-tp27866523p27993646.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to