Redelivery policy configuration

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Redelivery policy configuration

MopSop
Hi,

I try to confiigure the redelivery policy in my application through the
activemq.xml, I have added this part :
        <plugins>
            <redeliveryPlugin fallbackToDeadLetter="false"
sendToDlqIfMaxRetriesExceeded="false">
                <redeliveryPolicyMap>
                    <redeliveryPolicyMap>
                        <defaultEntry>
                            <redeliveryPolicy maximumRedeliveries="1"
initialRedeliveryDelay="10000" redeliveryDelay="10000" />
                        </defaultEntry>
                    </redeliveryPolicyMap>
                </redeliveryPolicyMap>
            </redeliveryPlugin>
        </plugins>

But after a rollback in my application, it seems there are 12 attempts,
maybe 6 default redeliveries * 2 ?
Is there a combination between redeliveries in factory connection and in
broker configuration ?

As another option, I also tried to configure in the brokerURL with :
vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
But it seems not possible to put in the URL at the same time a redelivery
policy and a broker configuration file.

Any idea, please ?

Stéphane
Reply | Threaded
Open this post in threaded view
|

Re: Redelivery policy configuration

cschneider
First the re deliveries in the factory are done then the ones on the server.
So they add up.

Christian

On 12.11.2015 16:53, Mop Sophia wrote:

> Hi,
>
> I try to confiigure the redelivery policy in my application through the
> activemq.xml, I have added this part :
>          <plugins>
>              <redeliveryPlugin fallbackToDeadLetter="false"
> sendToDlqIfMaxRetriesExceeded="false">
>                  <redeliveryPolicyMap>
>                      <redeliveryPolicyMap>
>                          <defaultEntry>
>                              <redeliveryPolicy maximumRedeliveries="1"
> initialRedeliveryDelay="10000" redeliveryDelay="10000" />
>                          </defaultEntry>
>                      </redeliveryPolicyMap>
>                  </redeliveryPolicyMap>
>              </redeliveryPlugin>
>          </plugins>
>
> But after a rollback in my application, it seems there are 12 attempts,
> maybe 6 default redeliveries * 2 ?
> Is there a combination between redeliveries in factory connection and in
> broker configuration ?
>
> As another option, I also tried to configure in the brokerURL with :
> vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
> But it seems not possible to put in the URL at the same time a redelivery
> policy and a broker configuration file.
>
> Any idea, please ?
>
> Stéphane
>


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply | Threaded
Open this post in threaded view
|

Re: Redelivery policy configuration

MopSop
Hi Christian,

Thanks for your answer.
My connection factory is declared in Tomcat as a Resource. Do you know how
can I configure the redelivery policy, please ?
When I add, this kind of option in the URL an error occured :
jms.redeliveryPolicy.maximumRedeliveries=1

Thanks,

Stéphane

2015-11-12 17:02 GMT+01:00 Christian Schneider <[hidden email]>:

> First the re deliveries in the factory are done then the ones on the
> server.
> So they add up.
>
> Christian
>
>
> On 12.11.2015 16:53, Mop Sophia wrote:
>
>> Hi,
>>
>> I try to confiigure the redelivery policy in my application through the
>> activemq.xml, I have added this part :
>>          <plugins>
>>              <redeliveryPlugin fallbackToDeadLetter="false"
>> sendToDlqIfMaxRetriesExceeded="false">
>>                  <redeliveryPolicyMap>
>>                      <redeliveryPolicyMap>
>>                          <defaultEntry>
>>                              <redeliveryPolicy maximumRedeliveries="1"
>> initialRedeliveryDelay="10000" redeliveryDelay="10000" />
>>                          </defaultEntry>
>>                      </redeliveryPolicyMap>
>>                  </redeliveryPolicyMap>
>>              </redeliveryPlugin>
>>          </plugins>
>>
>> But after a rollback in my application, it seems there are 12 attempts,
>> maybe 6 default redeliveries * 2 ?
>> Is there a combination between redeliveries in factory connection and in
>> broker configuration ?
>>
>> As another option, I also tried to configure in the brokerURL with :
>>
>> vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
>> But it seems not possible to put in the URL at the same time a redelivery
>> policy and a broker configuration file.
>>
>> Any idea, please ?
>>
>> Stéphane
>>
>>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Redelivery policy configuration

cschneider
No idea how to do it in tomcat. In karaf I used blueprint and the
RedeliveryPolicy class.

Christian

On 12.11.2015 17:06, Mop Sophia wrote:

> Hi Christian,
>
> Thanks for your answer.
> My connection factory is declared in Tomcat as a Resource. Do you know how
> can I configure the redelivery policy, please ?
> When I add, this kind of option in the URL an error occured :
> jms.redeliveryPolicy.maximumRedeliveries=1
>
> Thanks,
>
> Stéphane
>
> 2015-11-12 17:02 GMT+01:00 Christian Schneider <[hidden email]>:
>
>> First the re deliveries in the factory are done then the ones on the
>> server.
>> So they add up.
>>
>> Christian
>>
>>
>> On 12.11.2015 16:53, Mop Sophia wrote:
>>
>>> Hi,
>>>
>>> I try to confiigure the redelivery policy in my application through the
>>> activemq.xml, I have added this part :
>>>           <plugins>
>>>               <redeliveryPlugin fallbackToDeadLetter="false"
>>> sendToDlqIfMaxRetriesExceeded="false">
>>>                   <redeliveryPolicyMap>
>>>                       <redeliveryPolicyMap>
>>>                           <defaultEntry>
>>>                               <redeliveryPolicy maximumRedeliveries="1"
>>> initialRedeliveryDelay="10000" redeliveryDelay="10000" />
>>>                           </defaultEntry>
>>>                       </redeliveryPolicyMap>
>>>                   </redeliveryPolicyMap>
>>>               </redeliveryPlugin>
>>>           </plugins>
>>>
>>> But after a rollback in my application, it seems there are 12 attempts,
>>> maybe 6 default redeliveries * 2 ?
>>> Is there a combination between redeliveries in factory connection and in
>>> broker configuration ?
>>>
>>> As another option, I also tried to configure in the brokerURL with :
>>>
>>> vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
>>> But it seems not possible to put in the URL at the same time a redelivery
>>> policy and a broker configuration file.
>>>
>>> Any idea, please ?
>>>
>>> Stéphane
>>>
>>>
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>>
>> Open Source Architect
>> http://www.talend.com
>>
>>


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply | Threaded
Open this post in threaded view
|

Re: Redelivery policy configuration

MopSop
The issue was the "&" character to add parameter in the URL, if I use
"&amp;", it's ok, so the kind of URL is :
jms.redeliveryPolicy.initialRedeliveryDelay=10000&amp;jms.redeliveryPolicy.redeliveryDelay=20000&amp;brokerConfig=xbean:activemq.xml


2015-11-12 17:11 GMT+01:00 Christian Schneider <[hidden email]>:

> No idea how to do it in tomcat. In karaf I used blueprint and the
> RedeliveryPolicy class.
>
> Christian
>
>
> On 12.11.2015 17:06, Mop Sophia wrote:
>
>> Hi Christian,
>>
>> Thanks for your answer.
>> My connection factory is declared in Tomcat as a Resource. Do you know how
>> can I configure the redelivery policy, please ?
>> When I add, this kind of option in the URL an error occured :
>> jms.redeliveryPolicy.maximumRedeliveries=1
>>
>> Thanks,
>>
>> Stéphane
>>
>> 2015-11-12 17:02 GMT+01:00 Christian Schneider <[hidden email]>:
>>
>> First the re deliveries in the factory are done then the ones on the
>>> server.
>>> So they add up.
>>>
>>> Christian
>>>
>>>
>>> On 12.11.2015 16:53, Mop Sophia wrote:
>>>
>>> Hi,
>>>>
>>>> I try to confiigure the redelivery policy in my application through the
>>>> activemq.xml, I have added this part :
>>>>           <plugins>
>>>>               <redeliveryPlugin fallbackToDeadLetter="false"
>>>> sendToDlqIfMaxRetriesExceeded="false">
>>>>                   <redeliveryPolicyMap>
>>>>                       <redeliveryPolicyMap>
>>>>                           <defaultEntry>
>>>>                               <redeliveryPolicy maximumRedeliveries="1"
>>>> initialRedeliveryDelay="10000" redeliveryDelay="10000" />
>>>>                           </defaultEntry>
>>>>                       </redeliveryPolicyMap>
>>>>                   </redeliveryPolicyMap>
>>>>               </redeliveryPlugin>
>>>>           </plugins>
>>>>
>>>> But after a rollback in my application, it seems there are 12 attempts,
>>>> maybe 6 default redeliveries * 2 ?
>>>> Is there a combination between redeliveries in factory connection and in
>>>> broker configuration ?
>>>>
>>>> As another option, I also tried to configure in the brokerURL with :
>>>>
>>>>
>>>> vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
>>>> But it seems not possible to put in the URL at the same time a
>>>> redelivery
>>>> policy and a broker configuration file.
>>>>
>>>> Any idea, please ?
>>>>
>>>> Stéphane
>>>>
>>>>
>>>> --
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>>
>>> Open Source Architect
>>> http://www.talend.com
>>>
>>>
>>>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>