activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remella <>
Subject ActiveMQ windows service using JDBC persistence
Date Tue, 14 Feb 2012 00:57:57 GMT
I have an ActiveMQ broker running as a Windows service. Its using
jdbcPersistenceAdapter with Oracle data source and Oracle's Universal
Connection Pooling (UCP).

When the database is down (due to network problems or scheduled
maintenance), the ActiveMQ windows service shuts down completely. This, of
course makes the broker unavailable even after the database is restored.

I have tried connection validation in UCP, DBCP with connection validation
and even MySQL data source without any success. The service shuts down
within 30 seconds of database failure (persistenceAdapter cleanupInterval is
using the default value of 30 seconds).

Is there a way to prevent the windows service from shutting down and make it
wait for database availability? Any help is greatly appreciated.

Here is my current configuration from activemq.xml:

    <jdbcPersistenceAdapter dataSource="#oracle-ds"/>

<bean id="oracle-ds" class="oracle.ucp.jdbc.PoolDataSourceFactory" 
    p:validateConnectionOnBorrow="true" p:user="appuser"
p:password="userspassword" />

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

View raw message