You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by moreno9000 <mo...@italtel.it> on 2009/07/28 11:35:26 UTC
How to (automatically) activate Discarding DLQ Broker PLugin
Hi all,
I have a Producer that sends 250 messages to QUEUE_01.
Messages expire after 30 seconds.
AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
After 30 seconds I expect messages to be sent to DLQueue
and immediately discarded.
This doesn't happen :-(
More exactly, it happens only when I "browse" QUEUE_01 with AMQ web console.
QUEUE_01 is empty and, at the same time, DLQ is not present (in activemq.log
file
I see discarding plugin activation).
Is it possible to activate the plugin without having to browse QUEUE_01
with the console ?
Many thanks in advance,
Moreno
--
View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by Rob Davies <ra...@gmail.com>.
On 28 Jul 2009, at 14:56, moreno9000 wrote:
>
> Thank you Rob.
>
> With processExpired=false I don't need DLQ, but expired messages
> are really deleted from file system only when I "browse" QUEUE_01
> with AMQ web console.
>
> Is it possible to eliminate expired messages from file system
> without web console interaction ?
>
> Moreno
>
Yes - it should be in 5.3 - see http://issues.apache.org/activemq/browse/AMQ-1112
cheers,
Rob
Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/
>
>
> rajdavies wrote:
>>
>>
>>
>> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>>
>>>
>>> Hi all,
>>> I have a Producer that sends 250 messages to QUEUE_01.
>>> Messages expire after 30 seconds.
>>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>>> After 30 seconds I expect messages to be sent to DLQueue
>>> and immediately discarded.
>>>
>>> This doesn't happen :-(
>>>
>>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>>> console.
>>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>>> activemq.log
>>> file
>>> I see discarding plugin activation).
>>>
>>> Is it possible to activate the plugin without having to browse
>>> QUEUE_01
>>> with the console ?
>>>
>>> Many thanks in advance,
>>> Moreno
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>> As an aside - if you don't want expired messages in your DLQ - just
>> set the property on the dead letter strategy - processExpired = false
>>
>> cheers,
>>
>> Rob
>>
>> Rob Davies
>> I work here: http://fusesource.com
>> My Blog: http://rajdavies.blogspot.com/
>> I'm writing this: http://www.manning.com/snyder/
>>
>>
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24698097.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by moreno9000 <mo...@italtel.it>.
Thank you Rob.
With processExpired=false I don't need DLQ, but expired messages
are really deleted from file system only when I "browse" QUEUE_01
with AMQ web console.
Is it possible to eliminate expired messages from file system
without web console interaction ?
Moreno
rajdavies wrote:
>
>
>
> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>
>>
>> Hi all,
>> I have a Producer that sends 250 messages to QUEUE_01.
>> Messages expire after 30 seconds.
>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>> After 30 seconds I expect messages to be sent to DLQueue
>> and immediately discarded.
>>
>> This doesn't happen :-(
>>
>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>> console.
>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>> activemq.log
>> file
>> I see discarding plugin activation).
>>
>> Is it possible to activate the plugin without having to browse
>> QUEUE_01
>> with the console ?
>>
>> Many thanks in advance,
>> Moreno
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
> As an aside - if you don't want expired messages in your DLQ - just
> set the property on the dead letter strategy - processExpired = false
>
> cheers,
>
> Rob
>
> Rob Davies
> I work here: http://fusesource.com
> My Blog: http://rajdavies.blogspot.com/
> I'm writing this: http://www.manning.com/snyder/
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24698097.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by moreno9000 <mo...@italtel.it>.
Thank you Rob.
With processExpired=false I don't need DLQ, but expired messages
are really deleted from file system only when I "browse" QUEUE_01
with AMQ web console.
Is it possible to eliminate expired messages from file system
without web console interaction ?
Moreno
rajdavies wrote:
>
>
>
> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>
>>
>> Hi all,
>> I have a Producer that sends 250 messages to QUEUE_01.
>> Messages expire after 30 seconds.
>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>> After 30 seconds I expect messages to be sent to DLQueue
>> and immediately discarded.
>>
>> This doesn't happen :-(
>>
>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>> console.
>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>> activemq.log
>> file
>> I see discarding plugin activation).
>>
>> Is it possible to activate the plugin without having to browse
>> QUEUE_01
>> with the console ?
>>
>> Many thanks in advance,
>> Moreno
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
> As an aside - if you don't want expired messages in your DLQ - just
> set the property on the dead letter strategy - processExpired = false
>
> cheers,
>
> Rob
>
> Rob Davies
> I work here: http://fusesource.com
> My Blog: http://rajdavies.blogspot.com/
> I'm writing this: http://www.manning.com/snyder/
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24698081.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by wuxz <wo...@hotmail.com>.
rajdavies wrote:
>
> see http://activemq.apache.org/message-redelivery-and-dlq-handling.html
>
> On 29 Jul 2009, at 10:49, wuxz wrote:
>
>>
>>
>> rajdavies wrote:
>>>
>>>
>>>
>>> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>>>
>>>>
>>>> Hi all,
>>>> I have a Producer that sends 250 messages to QUEUE_01.
>>>> Messages expire after 30 seconds.
>>>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>>>> After 30 seconds I expect messages to be sent to DLQueue
>>>> and immediately discarded.
>>>>
>>>> This doesn't happen :-(
>>>>
>>>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>>>> console.
>>>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>>>> activemq.log
>>>> file
>>>> I see discarding plugin activation).
>>>>
>>>> Is it possible to activate the plugin without having to browse
>>>> QUEUE_01
>>>> with the console ?
>>>>
>>>> Many thanks in advance,
>>>> Moreno
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>
>>>
>>> As an aside - if you don't want expired messages in your DLQ - just
>>> set the property on the dead letter strategy - processExpired = false
>>>
>>> cheers,
>>>
>>> Rob
>>>
>>> Rob Davies
>>> I work here: http://fusesource.com
>>> My Blog: http://rajdavies.blogspot.com/
>>> I'm writing this: http://www.manning.com/snyder/
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> But how to set the dead letter strategy? I can not find this section
>> in
>> default config file.
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24715941.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
> Rob Davies
> I work here: http://fusesource.com
> My Blog: http://rajdavies.blogspot.com/
> I'm writing this: http://www.manning.com/snyder/
>
>
>
>
>
>
Thank you.
--
View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24716088.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by Rob Davies <ra...@gmail.com>.
see http://activemq.apache.org/message-redelivery-and-dlq-handling.html
On 29 Jul 2009, at 10:49, wuxz wrote:
>
>
> rajdavies wrote:
>>
>>
>>
>> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>>
>>>
>>> Hi all,
>>> I have a Producer that sends 250 messages to QUEUE_01.
>>> Messages expire after 30 seconds.
>>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>>> After 30 seconds I expect messages to be sent to DLQueue
>>> and immediately discarded.
>>>
>>> This doesn't happen :-(
>>>
>>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>>> console.
>>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>>> activemq.log
>>> file
>>> I see discarding plugin activation).
>>>
>>> Is it possible to activate the plugin without having to browse
>>> QUEUE_01
>>> with the console ?
>>>
>>> Many thanks in advance,
>>> Moreno
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>> As an aside - if you don't want expired messages in your DLQ - just
>> set the property on the dead letter strategy - processExpired = false
>>
>> cheers,
>>
>> Rob
>>
>> Rob Davies
>> I work here: http://fusesource.com
>> My Blog: http://rajdavies.blogspot.com/
>> I'm writing this: http://www.manning.com/snyder/
>>
>>
>>
>>
>>
>>
>
> But how to set the dead letter strategy? I can not find this section
> in
> default config file.
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24715941.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by wuxz <wo...@hotmail.com>.
rajdavies wrote:
>
>
>
> On 28 Jul 2009, at 10:35, moreno9000 wrote:
>
>>
>> Hi all,
>> I have a Producer that sends 250 messages to QUEUE_01.
>> Messages expire after 30 seconds.
>> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
>> After 30 seconds I expect messages to be sent to DLQueue
>> and immediately discarded.
>>
>> This doesn't happen :-(
>>
>> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
>> console.
>> QUEUE_01 is empty and, at the same time, DLQ is not present (in
>> activemq.log
>> file
>> I see discarding plugin activation).
>>
>> Is it possible to activate the plugin without having to browse
>> QUEUE_01
>> with the console ?
>>
>> Many thanks in advance,
>> Moreno
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
> As an aside - if you don't want expired messages in your DLQ - just
> set the property on the dead letter strategy - processExpired = false
>
> cheers,
>
> Rob
>
> Rob Davies
> I work here: http://fusesource.com
> My Blog: http://rajdavies.blogspot.com/
> I'm writing this: http://www.manning.com/snyder/
>
>
>
>
>
>
But how to set the dead letter strategy? I can not find this section in
default config file.
Thanks.
--
View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24715941.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to (automatically) activate Discarding DLQ Broker PLugin
Posted by Rob Davies <ra...@gmail.com>.
On 28 Jul 2009, at 10:35, moreno9000 wrote:
>
> Hi all,
> I have a Producer that sends 250 messages to QUEUE_01.
> Messages expire after 30 seconds.
> AMQ 5.2 is configured to use Discarding DLQ Broker Plugin.
> After 30 seconds I expect messages to be sent to DLQueue
> and immediately discarded.
>
> This doesn't happen :-(
>
> More exactly, it happens only when I "browse" QUEUE_01 with AMQ web
> console.
> QUEUE_01 is empty and, at the same time, DLQ is not present (in
> activemq.log
> file
> I see discarding plugin activation).
>
> Is it possible to activate the plugin without having to browse
> QUEUE_01
> with the console ?
>
> Many thanks in advance,
> Moreno
> --
> View this message in context: http://www.nabble.com/How-to-%28automatically%29-activate-Discarding-DLQ-Broker-PLugin-tp24695829p24695829.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
As an aside - if you don't want expired messages in your DLQ - just
set the property on the dead letter strategy - processExpired = false
cheers,
Rob
Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/