activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anilkapoor <er.anil.kap...@gmail.com>
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="http://activemq.apache.org/schema/core"
brokerName="localhost" persistent="true"
dataDirectory="${activemq.base}/data" >
              
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true"
memoryLimit="1mb">
                  <pendingSubscriberPolicy>
                    <vmCursor />
                  </pendingSubscriberPolicy>
                </policyEntry>
                <policyEntry queue=">" producerFlowControl="true"
memoryLimit="1mb">
                 
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>  

        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>

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

        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
        </transportConnectors>
    </broker> 
  <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
    <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"/>
  </bean>

--
View this message in context: http://activemq.2283324.n4.nabble.com/message-clears-from-db-if-application-or-activemq-restarts-tp3491807p3491807.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message