You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by deepak_a <an...@gmail.com> on 2013/07/02 15:58:16 UTC

How to suppress error from ActiveMQEndpointWorker? (jdbc-master-slave set up)

All,I am have a jdbc-master-slave set up as shown in the below
link.http://activemq.apache.org/jdbc-master-slave.htmlEverything works fine
as expected, the node that starts first grabs an exclusive lock on the
database and it becomes the master.At this point the slave node attempts to
connect every 30, fails and throws an exception.(which is expected), when
the master is shut down, the slave acquires lock and becomes master.Only
issue - is there a way to turn OFF the error log from
ActiveMQEndpointWorker?*From this
link*http://activemq.apache.org/maven/5.7.0/activemq-ra/apidocs/src-html/org/apache/activemq/ra/ActiveMQEndpointWorker.htmlI
see that the reconnect interval is set to 30 seconds - is there a way to
override this default setting as well?**14:56:01,203 ERROR
[ActiveMQEndpointWorker] Endpoint will try to reconnect to the JMS broker in
30 seconds14:56:01,227 ERROR [ActiveMQEndpointWorker] Failed to connect to
broker
[vm://jboss-activemq-broker?create=false&jms.redeliveryPolicy.maximumRedeliveries=0]:
Could not create Transport. Reason: java.io.IOException: Broker named
'jboss-activemq-broker' does not exist.javax.jms.JMSException: Could not
create Transport. Reason: java.io.IOException: Broker named
'jboss-activemq-broker' does not exist.        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)       
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:254)       
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:267)       
at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:192)       
at
org.apache.activemq.ra.ActiveMQResourceAdapter.makeConnection(ActiveMQResourceAdapter.java:133)       
at
org.apache.activemq.ra.ActiveMQEndpointWorker$1.run(ActiveMQEndpointWorker.java:106)       
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)       
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)       
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)       
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)       
at java.lang.Thread.run(Thread.java:662)Caused by: java.io.IOException:
Broker named 'jboss-activemq-broker' does not exist.        at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:116)       
at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:54)       
at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)       
at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)       
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:252)



--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-suppress-error-from-ActiveMQEndpointWorker-jdbc-master-slave-set-up-tp4668791.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.