title: activemq with spring, enabling a mirrored queue
body: <p>Below is a straight forward spring supported activemq configuration, I didn't have much trouble with that as I have followed the documentation. Basicly there is a queue to whom a producer sends messages to using the jmsTemplate, the configuration is as follows, it is tested and I have no problems with it :</p>
  
  <pre><code>&lt;bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory"
      destroy-method="stop"&gt;
      &lt;property name="connectionFactory"&gt;
          &lt;bean class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
              &lt;property name="brokerURL"
                  value="${activemq.brokerUrl}" /&gt;
              &lt;property name="sendTimeout"
                  value="${activemq.sendTimeout}" /&gt;
              &lt;property name="prefetchPolicy"&gt;
                  &lt;bean class="org.apache.activemq.ActiveMQPrefetchPolicy"&gt;
                      &lt;property name="queuePrefetch" value="0" /&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;amq:queue id="classifiedEventSink"
      physicalName="${activemq.classifiedEventSink.producer}" /&gt;
  
  &lt;bean id="jmsTemplateClassifiedEventSink"
      class="org.springframework.jms.core.JmsTemplate"&gt;
  
      &lt;property name="connectionFactory" ref="jmsFactory" /&gt;
      &lt;property name="defaultDestination" ref="classifiedEventSink" /&gt;
      &lt;property name="sessionAcknowledgeModeName" value="AUTO_ACKNOWLEDGE" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Now keeping this configuration I want to make this a mirrored queue in which, everytime a producer adds a message to the queue, I want that message to be broadcast on a topic. The trick is to make the configuration on spring, since I am having difficulty finding examples. Can you point me towards any direction ? </p>