title: ActiveMQ 5.13.2 messages missing after restart
body: <p>I am new to active MQ. Installed activemq 5.13.2. I am losing all my messages(including durable topic) after activeMQ server restart. Please find the below console screen shots before and after active MQ server restart. </p>
  
  <p><a href="http://i.stack.imgur.com/fslWc.png" rel="noreferrer">before activeMQ restart</a> </p>
  
  <p><a href="http://i.stack.imgur.com/7KpDB.png" rel="noreferrer">After ActiveMQ restart</a></p>
  
  <p>This is my activemq.xml configuration: </p>
  
  <pre><code>&lt;beans 
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"&gt;
  
  
      &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="locations"&gt;
              &lt;value&gt;file:${activemq.conf}/credentials.properties&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
  
      &lt;bean id="logQuery" class="io.fabric8.insight.log.log4j.Log4jLogQuery" 
            lazy-init="false" scope="singleton" 
            init-method="start" destroy-method="stop"&gt;
      &lt;/bean&gt;
  
      &lt;broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" persistent="true" useShutdownHook="false"&gt;
  
          &lt;destinationPolicy&gt;
              &lt;policyMap&gt;
                &lt;policyEntries&gt;
                  &lt;policyEntry topic="&gt;" &gt; 
  
                    &lt;pendingMessageLimitStrategy&gt;
                      &lt;constantPendingMessageLimitStrategy limit="1000"/&gt;
                    &lt;/pendingMessageLimitStrategy&gt;
                  &lt;/policyEntry&gt;
                &lt;/policyEntries&gt;
              &lt;/policyMap&gt;
          &lt;/destinationPolicy&gt;
  
  
  
          &lt;managementContext&gt;
              &lt;managementContext createConnector="false"/&gt;
          &lt;/managementContext&gt;
  
  
          &lt;persistenceAdapter&gt;
              &lt;kahaDB directory="${activemq.data}/kahadb" journalMaxFileLength="32mb"/&gt;
          &lt;/persistenceAdapter&gt;
  
  
  
  
            &lt;systemUsage&gt;
              &lt;systemUsage&gt;
                  &lt;memoryUsage&gt;
                      &lt;memoryUsage percentOfJvmHeap="70" /&gt;
                  &lt;/memoryUsage&gt;
                  &lt;storeUsage&gt;
                      &lt;storeUsage limit="100 gb"/&gt;
                  &lt;/storeUsage&gt;
                  &lt;tempUsage&gt;
                      &lt;tempUsage limit="50 gb"/&gt;
                  &lt;/tempUsage&gt;
              &lt;/systemUsage&gt;
          &lt;/systemUsage&gt;
  
  
          &lt;transportConnectors&gt;
  
              &lt;transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;amp;wireFormat.maxFrameSize=104857600"/&gt;
              &lt;transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;amp;wireFormat.maxFrameSize=104857600"/&gt;
              &lt;transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;amp;wireFormat.maxFrameSize=104857600"/&gt;
              &lt;transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;amp;wireFormat.maxFrameSize=104857600"/&gt;
              &lt;transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;amp;wireFormat.maxFrameSize=104857600"/&gt;
          &lt;/transportConnectors&gt;
  
          &lt;destinations&gt;
                 &lt;queue physicalName="testQueue"&gt;
                 &lt;/queue&gt;
                 &lt;topic physicalName="testTopic" /&gt;
           &lt;/destinations&gt;
  
          &lt;shutdownHooks&gt;
              &lt;bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" /&gt;
          &lt;/shutdownHooks&gt;
  
  
      &lt;/broker&gt;
  
  
      &lt;import resource="jetty.xml"/&gt;
  
  &lt;/beans&gt;
  </code></pre>