You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Praveen M <le...@gmail.com> on 2011/10/20 02:01:32 UTC

redelivery count & delay?

Hi,

   I'm trying to find out if there is a mechanism in qpid to set the maximum
number of times that a retry should happen and also the time delay that
should be introduced between retries. Also is there a Dead Letter Queue?

I'm using the java broker/java client and I'm having quite some trouble
finding something where I can set these.

Also, I saw that the C++ broker has some method called setRetry() in the
connection object. Is this compatible with a  java client?

-- 
-Praveen

Re: redelivery count & delay?

Posted by Robbie Gemmell <ro...@gmail.com>.
On 20 October 2011 20:00, Gordon Sim <gs...@redhat.com> wrote:
> On 10/20/2011 07:34 PM, Robbie Gemmell wrote:
>>
>> On 20 October 2011 16:04, Gordon Sim<gs...@redhat.com>  wrote:
>>>
>>> On 10/20/2011 03:52 PM, Praveen M wrote:
>>>>
>>>> On Thu, Oct 20, 2011 at 6:49 AM, Gordon Sim<gs...@redhat.com>    wrote:
>>>>
>>>>> On 10/20/2011 01:01 AM, Praveen M wrote:
>>>>>
>>>>>>    I'm trying to find out if there is a mechanism in qpid to set the
>>>>>> maximum
>>>>>> number of times that a retry should happen and also the time delay
>>>>>> that
>>>>>> should be introduced between retries. Also is there a Dead Letter
>>>>>> Queue?
>>>>>>
>>>>>
>>>>> I assume by retry here you mean attempts by the broker to deliver a
>>>>> message
>>>>> to a subscriber?
>>>>
>>>>
>>>> *yes that is right .. is there a way to control the number of
>>>> deliveries...and also introduce a delay between such deliveries?*
>>>
>>> Not in the c++ broker. It looks like there might be a way to do the first
>>> part in the java broker however, based on
>>> https://issues.apache.org/jira/browse/QPID-2970. I haven't tried that
>>> myself
>>> however.
>>>
>>
>> That feature never made it to trunk and so isnt available in the Java
>> broker either currently. The functionality has come up very recently
>> in a different scenario though, so something similar-but-different
>> probably will make it in future.
>
> Ah, I was led astray by the 'Fixed' resolution!
>

Easily done, the situation it isnt that obvious from looking at it
unless you already know... :(

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: redelivery count & delay?

Posted by Gordon Sim <gs...@redhat.com>.
On 10/20/2011 07:34 PM, Robbie Gemmell wrote:
> On 20 October 2011 16:04, Gordon Sim<gs...@redhat.com>  wrote:
>> On 10/20/2011 03:52 PM, Praveen M wrote:
>>>
>>> On Thu, Oct 20, 2011 at 6:49 AM, Gordon Sim<gs...@redhat.com>    wrote:
>>>
>>>> On 10/20/2011 01:01 AM, Praveen M wrote:
>>>>
>>>>>     I'm trying to find out if there is a mechanism in qpid to set the
>>>>> maximum
>>>>> number of times that a retry should happen and also the time delay that
>>>>> should be introduced between retries. Also is there a Dead Letter Queue?
>>>>>
>>>>
>>>> I assume by retry here you mean attempts by the broker to deliver a
>>>> message
>>>> to a subscriber?
>>>
>>>
>>> *yes that is right .. is there a way to control the number of
>>> deliveries...and also introduce a delay between such deliveries?*
>>
>> Not in the c++ broker. It looks like there might be a way to do the first
>> part in the java broker however, based on
>> https://issues.apache.org/jira/browse/QPID-2970. I haven't tried that myself
>> however.
>>
>
> That feature never made it to trunk and so isnt available in the Java
> broker either currently. The functionality has come up very recently
> in a different scenario though, so something similar-but-different
> probably will make it in future.

Ah, I was led astray by the 'Fixed' resolution!


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: redelivery count & delay?

Posted by Robbie Gemmell <ro...@gmail.com>.
On 20 October 2011 16:04, Gordon Sim <gs...@redhat.com> wrote:
> On 10/20/2011 03:52 PM, Praveen M wrote:
>>
>> On Thu, Oct 20, 2011 at 6:49 AM, Gordon Sim<gs...@redhat.com>  wrote:
>>
>>> On 10/20/2011 01:01 AM, Praveen M wrote:
>>>
>>>>    I'm trying to find out if there is a mechanism in qpid to set the
>>>> maximum
>>>> number of times that a retry should happen and also the time delay that
>>>> should be introduced between retries. Also is there a Dead Letter Queue?
>>>>
>>>
>>> I assume by retry here you mean attempts by the broker to deliver a
>>> message
>>> to a subscriber?
>>
>>
>> *yes that is right .. is there a way to control the number of
>> deliveries...and also introduce a delay between such deliveries?*
>
> Not in the c++ broker. It looks like there might be a way to do the first
> part in the java broker however, based on
> https://issues.apache.org/jira/browse/QPID-2970. I haven't tried that myself
> however.
>

That feature never made it to trunk and so isnt available in the Java
broker either currently. The functionality has come up very recently
in a different scenario though, so something similar-but-different
probably will make it in future.

>>>  I'm using the java broker/java client and I'm having quite some trouble
>>>>
>>>> finding something where I can set these.
>>>>
>>>> Also, I saw that the C++ broker has some method called setRetry() in the
>>>> connection object. Is this compatible with a  java client?
>>>>
>>>
>>> Where did you see that exactly? The only setRetry() method on C++ that I
>>> can see is on QMF client connections, not in the messaging APIs and not
>>> on
>>> the broker.
>>>
>>
>> *aw..yes..my bad..it was the QMF Client connections where i found this.,
>> not
>> in the API and not broker...sorry for the mixup*
>
> The retry there means something different - its the number of times to try
> and reconnect.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: redelivery count & delay?

Posted by Gordon Sim <gs...@redhat.com>.
On 10/20/2011 03:52 PM, Praveen M wrote:
> On Thu, Oct 20, 2011 at 6:49 AM, Gordon Sim<gs...@redhat.com>  wrote:
>
>> On 10/20/2011 01:01 AM, Praveen M wrote:
>>
>>>     I'm trying to find out if there is a mechanism in qpid to set the
>>> maximum
>>> number of times that a retry should happen and also the time delay that
>>> should be introduced between retries. Also is there a Dead Letter Queue?
>>>
>>
>> I assume by retry here you mean attempts by the broker to deliver a message
>> to a subscriber?
>
>
> *yes that is right .. is there a way to control the number of
> deliveries...and also introduce a delay between such deliveries?*

Not in the c++ broker. It looks like there might be a way to do the 
first part in the java broker however, based on 
https://issues.apache.org/jira/browse/QPID-2970. I haven't tried that 
myself however.

>>   I'm using the java broker/java client and I'm having quite some trouble
>>> finding something where I can set these.
>>>
>>> Also, I saw that the C++ broker has some method called setRetry() in the
>>> connection object. Is this compatible with a  java client?
>>>
>>
>> Where did you see that exactly? The only setRetry() method on C++ that I
>> can see is on QMF client connections, not in the messaging APIs and not on
>> the broker.
>>
>
> *aw..yes..my bad..it was the QMF Client connections where i found this., not
> in the API and not broker...sorry for the mixup*

The retry there means something different - its the number of times to 
try and reconnect.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: redelivery count & delay?

Posted by Praveen M <le...@gmail.com>.
On Thu, Oct 20, 2011 at 6:49 AM, Gordon Sim <gs...@redhat.com> wrote:

> On 10/20/2011 01:01 AM, Praveen M wrote:
>
>>    I'm trying to find out if there is a mechanism in qpid to set the
>> maximum
>> number of times that a retry should happen and also the time delay that
>> should be introduced between retries. Also is there a Dead Letter Queue?
>>
>
> I assume by retry here you mean attempts by the broker to deliver a message
> to a subscriber?


*yes that is right .. is there a way to control the number of
deliveries...and also introduce a delay between such deliveries?*

>
>
>  I'm using the java broker/java client and I'm having quite some trouble
>> finding something where I can set these.
>>
>> Also, I saw that the C++ broker has some method called setRetry() in the
>> connection object. Is this compatible with a  java client?
>>
>
> Where did you see that exactly? The only setRetry() method on C++ that I
> can see is on QMF client connections, not in the messaging APIs and not on
> the broker.
>

*aw..yes..my bad..it was the QMF Client connections where i found this., not
in the API and not broker...sorry for the mixup*

>
>
>
>
> ------------------------------**------------------------------**---------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.**apache.org<us...@qpid.apache.org>
>
>


-- 
-Praveen

Re: redelivery count & delay?

Posted by Gordon Sim <gs...@redhat.com>.
On 10/20/2011 01:01 AM, Praveen M wrote:
>     I'm trying to find out if there is a mechanism in qpid to set the maximum
> number of times that a retry should happen and also the time delay that
> should be introduced between retries. Also is there a Dead Letter Queue?

I assume by retry here you mean attempts by the broker to deliver a 
message to a subscriber?

> I'm using the java broker/java client and I'm having quite some trouble
> finding something where I can set these.
>
> Also, I saw that the C++ broker has some method called setRetry() in the
> connection object. Is this compatible with a  java client?

Where did you see that exactly? The only setRetry() method on C++ that I 
can see is on QMF client connections, not in the messaging APIs and not 
on the broker.




---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org