@Override
protected void configureBroker(BrokerService brokerService) {
//let the brokers die on exception and master should have lease on restart
// which will delay slave start till it expires
JDBCIOExceptionHandler trapSQLExceptions = new JDBCIOExceptionHandler();
trapSQLExceptions.setIgnoreSQLExceptions(false);
trapSQLExceptions.setStopStartConnectors(false);
trapSQLExceptions.setResumeCheckSleepPeriod(500l);
brokerService.setIoExceptionHandler(trapSQLExceptions);
}