activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schweet <>
Subject Re: ActiveMQ Master/slave with MySQLCluster backend
Date Wed, 27 Mar 2013 09:06:08 GMT

I have master/slave MQ setup with Multi master mesh Mysql back end. With the
following configurations, the failover works perfectly. Take down any DB
host that MQ is connected to, it connects to the next available DB host
automatically. No need to restart. Hope it helps:

        <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
             <property name="driverClassName"
             <property name="url"
             <property name="maxActive" value="250"/>
             <property name="maxIdle" value="10"/>
             <property name="minIdle" value="5"/>
             <property name="testOnBorrow" value="true"/>
             <property name="validationQuery" value="select 1"/>
             <property name="username" value="mqpdb_test"/>
             <property name="password" value="87P5rfbTU"/>
             <property name="poolPreparedStatements" value="true"/>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message