activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ramesh.krg" <ramesh....@gmail.com>
Subject discovery in Activemq
Date Fri, 10 Jun 2011 07:35:51 GMT
Hi All,

We are using apache-activemq-5.4.2 in jboss to acheive failover scenario.

Fail over scenario is working fine.

Current Cinfiguration :

in broker-config.xml 

<transportConnector name="JbB" uri="tcp://10.128.16.52:61616"
updateClusterClients="true" updateClusterFilter="*ClusterA*" />

URI thro Code :

url="failover:(tcp://10.128.16.51:61616,tcp://10.128.16.57:61616)"


Now I like to bring the discovery feature   : b'use we don't no clusters in
production.

Modified Configuration :


in broker-config.xml 

 <networkConnector name="default-nc" uri="multicast://default"/> 

<transportConnector name="openwire" uri="tcp://localhost:0"
discoveryUri="multicast://default" /> 

URI thro Code :

url = "discovery://(multicast://default)"; 


I'm getting below error : (attached the error log)

Exception in thread "ActiveMQ Task" java.lang.IllegalArgumentException:
timeout value is negative
     [java]     at java.lang.Object.wait(Native Method)
     [java]     at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:939)
     [java]     at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:135)
     [java]     at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
     [java]     at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
     [java]     at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     [java]     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     [java]     at java.lang.Thread.run(Thread.java:662)

So please guide me to acheive discovery ................

Thanks.

--
View this message in context: http://activemq.2283324.n4.nabble.com/discovery-in-Activemq-tp3587771p3587771.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message