have a peek at the tests, eg::
http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java

there are a bunch of DeadLetter tests in that package

for expiry variants: see
http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java

If you can grep the tests references to "ActiveMQ.DLQ" or
"setTimeToLive" you will find loads of usage examples.

On 28 March 2012 11:00, Zagan <erbsen.fr...@gmail.com> wrote:
> Hello,
>
> as I currently understand, the DLQ queue is used in two cases
> - the JMS client reaches redelivery attempts specified in the
> RedeliveryPolicy
> - the JMS client tries to send an expired message
>
> How can I provoke the situation, where a message is sent to the DLQ Queue?
> Can anyone provide a code snippet for a sending JMS client?
>
> Is the DLQ also used for receiving clients, in case the number of
> unsuccessful "GET" calls reaches the redelivery attempts?
>
> Thanks in advance
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Is-DLQ-for-sender-an-receiver-of-messages-tp4511845p4511845.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://fusesource.com
http://blog.garytully.com

Reply via email to