activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Alerts when failover (JDBC Master Slave) occurs
Date Wed, 25 May 2011 15:27:43 GMT
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 <jannepostilistat@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

Mime
View raw message