activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Smith <tarkast...@gmail.com>
Subject Scheduled messages don't use jdbcPersistenceAdapter
Date Mon, 07 Mar 2011 23:33:53 GMT
HI,

I have an embedded broker with Postgres JDBC persistence set-up.  This
works fine for normal messages, however when injecting delayed
messages these are persisted to the filesystem (in
activemq-data/localhost/scheduler).  The relevant config:

    <bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:comp/env/jdbc/HalDS"/>
    </bean>

    <amq:broker id="activeMqBroker" useJmx="false" persistent="true"
schedulerSupport="true">
        <amq:persistenceAdapter>
            <amq:jdbcPersistenceAdapter dataSource="#dataSource"
useDatabaseLock="false"/>
        </amq:persistenceAdapter>
        <amq:transportConnectors>
            <amq:transportConnector uri="tcp://localhost:61616" />
        </amq:transportConnectors>
    </amq:broker>

Is it possible to have scheduled messages persisted to the JDBC store?

Thanks,
Steve

Mime
View raw message