title: ActiveMQ Topic - Messages not getting persisted in database
body: <p>I have enabled persistence in ActiveMQ broker. It is saving messages in db table for messages in Queue. <strong>Problem</strong>
  ActiveMQ is not saving messages in database for TOPICS. Configuraiton attached below. I am looking for messages in table <strong>activemq_msgs</strong>. </p>
  
  <p>If I check this table for a queue, it is getting populated. But messages in topics are not getting persisted.</p>
  
  <pre><code>&lt;broker xmlns="http://activemq.apache.org/schema/core" brokerName="Central-Dev-Broker" persistent="true"  offlineDurableSubscriberTimeout="8" offlineDurableSubscriberTaskSchedule="3000" useJmx="true"&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;policyEntry queue="&gt;"&gt;
                &lt;deadLetterStrategy&gt;
                  &lt;individualDeadLetterStrategy queuePrefix="DLQ." useQueueForQueueMessages="true"/&gt;
                &lt;/deadLetterStrategy&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"/--&gt;
          &lt;jdbcPersistenceAdapter dataSource="#mysql-ds"/&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;/transportConnectors&gt;
      &lt;plugins/&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;bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"&gt;
      &lt;property name="driverClassName" value="com.mysql.jdbc.Driver"/&gt;
      &lt;property name="url" value="jdbc:mysql://localhost:3306/db_activemq?relaxAutoCommit=true"/&gt;
      &lt;property name="username" value="root"/&gt;
      &lt;property name="password" value="root"/&gt;
      &lt;property name="poolPreparedStatements" value="true"/&gt;
    &lt;/bean&gt;
      &lt;import resource="jetty.xml"/&gt;
  &lt;/beans&gt;
  </code></pre>