You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by janne postilista <ja...@gmail.com> on 2011/05/25 16:13:48 UTC
Alerts when failover (JDBC Master Slave) occurs
I can configure ActiveMQ master/slave failover so that when my active
master instance fails, it releases a database lock, then a slave
instance grabs the lock and starts processing messages:
http://activemq.apache.org/jdbc-master-slave.html
Does this feature support alerts when failover happens, for example I
could plug in a class which sends email to an admin when failover
occurs?
Re: Alerts when failover (JDBC Master Slave) occurs
Posted by Gary Tully <ga...@gmail.com>.
afraid not, there is currently no support for a handler when a lock
is acquired.
However, the default database locker is plugable so you could extend
and provide your own implementation that can alerts when it acquires
the lock.
All contributions are most welcome in this regard.
To peek at the current impl see:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/DefaultDatabaseLocker.java?view=markup
On 25 May 2011 15:13, janne postilista <ja...@gmail.com> wrote:
> I can configure ActiveMQ master/slave failover so that when my active
> master instance fails, it releases a database lock, then a slave
> instance grabs the lock and starts processing messages:
> http://activemq.apache.org/jdbc-master-slave.html
>
> Does this feature support alerts when failover happens, for example I
> could plug in a class which sends email to an admin when failover
> occurs?
>
--
http://fusesource.com
http://blog.garytully.com