activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anilkapoor <>
Subject message clears from db if application or activemq restarts..
Date Tue, 03 May 2011 06:12:25 GMT
Can anyone explain me why my messages from ACTIVEMQ_MSGS table gets deleted.
It happens everytime when i restart the activemq or whenever my application
gets restarted. 
<broker xmlns=""
brokerName="localhost" persistent="true"
dataDirectory="${activemq.base}/data" >
                <policyEntry topic=">" producerFlowControl="true"
                    <vmCursor />
                <policyEntry queue=">" producerFlowControl="true"

            <managementContext createConnector="false"/>

            <jdbcPersistenceAdapter useDatabaseLock="true"
dataDirectory="activemq-data" dataSource="#oracle-ds"/>

            <transportConnector name="openwire" uri="tcp://"/>
  <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource"
    <property name="driverClassName" value="oracle.jdbc.OracleDriver"/>
    <property name="url" value="jdbc:oracle:thin:@mydbserver:1521:tsmdev"/>
    <property name="username" value="123"/>
    <property name="password" value="12345"/>
    <property name="poolPreparedStatements" value="true"/>

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

View raw message