activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Datacom - Marcelo <marc...@datacom.ind.br>
Subject Re: ActiveMQ.DLQ and maxiumRedeliveries
Date Fri, 29 Feb 2008 17:21:46 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, we are  using active-mq since 4.0.1 and in version 5 we are getting
dead queue problems, the weird thing is we do not use queues, we use
topic in a publisher subscriber architecture. <br>
Our session is NOT transacted and we use auto-acknowledge and never
call recover from a session.<br>
<br>
Here is what the broker logs:<br>
<br>
WARN  RegionBroker                   - Failed to send ActiveMQMessage
{commandId<br>
 = 5, responseRequired = false, messageId =
ID:Cabral-3367-1203533511437-0:0:1:1<br>
:1, originalDestination = null, originalTransactionId = null,
producerId = ID:Ca<br>
bral-3367-1203533511437-0:0:1:1, destination = topic://NMS,
transactionId = null<br>
, expiration = 1203533571859, timestamp = 1203533511859, arrival = 0,
brokerInTi<br>
me = 1203533582781, brokerOutTime = 0, correlationId = null, replyTo =
null, per<br>
sistent = false, type = null, priority = 4, groupID = null,
groupSequence = 0, t<br>
argetConsumerId = null, compressed = false, userID = null, content =
null, marsh<br>
alledProperties = org.apache.activemq.util.ByteSequence@fd1810,
dataStructure =<br>
null, redeliveryCounter = 0, size = 0, properties = null,
readOnlyProperties = f<br>
alse, readOnlyBody = false, droppable = false} to dead letter queue<br>
<br>
If we change to older version of activemq this problem disappears and
all subscribers receive this message.<br>
<br>
I sent a reply here becouse I thought I can disable dead-queue too but
I dont have a queue and got an error when I try to disable.<br>
<br>
------------------------<br>
<br>
Anselmo Abadía escreveu:
<blockquote cite="mid:15733385.post@talk.nabble.com" type="cite">
  <pre wrap="">Thank you!.


Fred D wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I believe you should set maximumRedeliveries to -1 ... this effectively
defines an infinite number of redeliveries ....
<a class="moz-txt-link-freetext" href="http://activemq.apache.org/redelivery-policy.html">http://activemq.apache.org/redelivery-policy.html</a>

You can set this in the activemq.xml config file in the /conf directory if
that is the config you use.

You can try the following snippet setting your queue name ... 


&lt;destinationPolicy&gt;
      &lt;policyMap&gt;
           &lt;policyEntries&gt;
        
             &lt;policyEntry queue="FOO"&gt;            
               &lt;redeliveryPolicy	maximumRedeliveries=-1&gt;
                                 
               &lt;/redeliveryPolicy&gt;
            &lt;/policyEntry&gt;

         &lt;/policyEntries&gt;
     &lt;/policyMap&gt;
  &lt;/destinationPolicy&gt;



Fred

<a class="moz-txt-link-abbreviated" href="http://www.ttmsolutions.com">www.ttmsolutions.com</a>
  




Anselmo Abadía wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi, I´m using ActiveMQ 5. I need to disable ActiveMQ.DLQ queue.
I've read
in another post that it's possible setting the maxiumRedeliveries to 1,
but, I don´t know the place that I have to set it on. Can anybody help
me?

Thanks, Anselmo

      </pre>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>

Mime
View raw message