You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mop Sophia <mo...@gmail.com> on 2015/11/12 16:53:28 UTC
Redelivery policy configuration
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
Re: Redelivery policy configuration
Posted by Mop Sophia <mo...@gmail.com>.
The issue was the "&" character to add parameter in the URL, if I use
"&", it's ok, so the kind of URL is :
jms.redeliveryPolicy.initialRedeliveryDelay=10000&jms.redeliveryPolicy.redeliveryDelay=20000&brokerConfig=xbean:activemq.xml
2015-11-12 17:11 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:
> 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 <ch...@die-schneider.net>:
>>
>> 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
>
>
Re: Redelivery policy configuration
Posted by Christian Schneider <ch...@die-schneider.net>.
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 <ch...@die-schneider.net>:
>
>> 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
Re: Redelivery policy configuration
Posted by Mop Sophia <mo...@gmail.com>.
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 <ch...@die-schneider.net>:
> 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
>
>
Re: Redelivery policy configuration
Posted by Christian Schneider <ch...@die-schneider.net>.
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