Hi, I'm trying to run activeMQ broker with a destination policy configured to a dead letter. I picked up the *IndividualDeadLetterViaXmlTest *shipped with activemq test packages.
I have a producer sending messages on topic org.apache.myTestTopic, no consumer on that topic and a consumer waiting for messages on Test.DLQ.org.apache.myTestTopic. Messages I send to the concrete topic still on that topic and never got forwarded to dead letter topic even queue (i.e Test.DLQ.org.apache.myTestTopic). Is this a known issue? Do I have to move to another version of activemq? What I'm doing wrong? TIA, Harry *Broker configuration* <beans xmlns="http://activemq.org/config/1.0">
<!-- Allows us to use system properties as variables in this configuration file --> <bean class=" org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> <broker persistent="false" > <!-- In ActiveMQ 4, you can setup destination policies --> <destinationPolicy> <policyMap> <policyEntries> <policyEntry topic="org.apache.>"> <!--dispatchPolicy> <strictOrderDispatchPolicy /> </dispatchPolicy--> <deadLetterStrategy> <individualDeadLetterStrategy topicPrefix="Test.DLQ." /> </deadLetterStrategy> </policyEntry> </policyEntries></policyMap> </destinationPolicy> <persistenceAdapter> <journaledJDBC journalLogFiles="5" dataDirectory="${activemq.home }/activemq-data"/> </persistenceAdapter> <transportConnectors> <transportConnector name="default" uri="tcp://localhost:61616" /> <transportConnector name="stomp" uri="stomp://localhost:61613"/> </transportConnectors> </broker> </beans>