activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericklip <>
Subject activemq 5.7.0 lease-database-locker lockAcquireSleepInterval is fixed on 5000ms
Date Tue, 13 Nov 2012 19:31:57 GMT
i tried to configure lease-database-locker with a longer
lockAcquireSleepInterval, but it always stays on 5000ms (default value)

i tried following 2 ways, neither one works.

	<jdbcPersistenceAdapter dataDirectory="${}"
dataSource="#mysql-ds" lockKeepAlivePeriod="2000">
			<lease-database-locker lockAcquireSleepInterval="10000"/>

	<jdbcPersistenceAdapter dataDirectory="${}"
dataSource="#mysql-ds" lockKeepAlivePeriod="2000"
			<lease-database-locker />

i looked at source code, looks LeaseDatabaseLocker configure  method
overwrote external setting,  is there any way to get around of it?

   public void configure(PersistenceAdapter adapter) throws IOException {
        if (adapter instanceof JDBCPersistenceAdapter) {
            this.persistenceAdapter = (JDBCPersistenceAdapter)adapter;
            this.dataSource = ((JDBCPersistenceAdapter)
            this.statements = ((JDBCPersistenceAdapter)
        lockAcquireSleepInterval = DEFAULT_LOCK_ACQUIRE_SLEEP_INTERVAL;



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

View raw message