You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Thomas Dudziak <to...@gmail.com> on 2010/09/23 04:40:30 UTC

Message selectors and scheduled messages ?

Hi,

is there a way to select delayed/scheduled messages with a selector,
e.g. for custom properties ?

cheers,
Tom

Re: Message selectors and scheduled messages ?

Posted by Norman Maurer <no...@apache.org>.
+1,

I would love this feature too :)

Bye,
Norman

2010/9/23 Thomas Dudziak <to...@gmail.com>:
> The problem is that this only works if the message is due, so to
> speak. For systems where you have more than a few scheduled messages,
> you'll need something like a queue browser (which can actually see the
> whole queue, e.g. AMQ-2172) that allows you to select and delete
> messages by message selectors. E.g. you could delete all scheduled
> messages with a specific custom property. This would also take care of
> rescheduling, simply delete and schedule again.
> I filed AMQ-2941 for this.
>
> cheers,
> Tom
>
> On Thu, Sep 23, 2010 at 04:35, Dejan Bosanac <de...@nighttale.net> wrote:
>> Hi Tom,
>>
>> note that scheduled messages are kept by the broker in a specialized
>> store, and will be sent to the queue/topic only when time comes. These
>> send messages have "scheduledJobId" property set, which you can use to
>> select them.
>>
>> Cheers
>> --
>> Dejan Bosanac - http://twitter.com/dejanb
>>
>> Open Source Integration - http://fusesource.com/
>> ActiveMQ in Action - http://www.manning.com/snyder/
>> Blog - http://www.nighttale.net
>>
>>
>>
>> On Thu, Sep 23, 2010 at 4:40 AM, Thomas Dudziak <to...@gmail.com> wrote:
>>> Hi,
>>>
>>> is there a way to select delayed/scheduled messages with a selector,
>>> e.g. for custom properties ?
>>>
>>> cheers,
>>> Tom
>>>
>>
>

Re: Message selectors and scheduled messages ?

Posted by Thomas Dudziak <to...@gmail.com>.
The problem is that this only works if the message is due, so to
speak. For systems where you have more than a few scheduled messages,
you'll need something like a queue browser (which can actually see the
whole queue, e.g. AMQ-2172) that allows you to select and delete
messages by message selectors. E.g. you could delete all scheduled
messages with a specific custom property. This would also take care of
rescheduling, simply delete and schedule again.
I filed AMQ-2941 for this.

cheers,
Tom

On Thu, Sep 23, 2010 at 04:35, Dejan Bosanac <de...@nighttale.net> wrote:
> Hi Tom,
>
> note that scheduled messages are kept by the broker in a specialized
> store, and will be sent to the queue/topic only when time comes. These
> send messages have "scheduledJobId" property set, which you can use to
> select them.
>
> Cheers
> --
> Dejan Bosanac - http://twitter.com/dejanb
>
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
>
> On Thu, Sep 23, 2010 at 4:40 AM, Thomas Dudziak <to...@gmail.com> wrote:
>> Hi,
>>
>> is there a way to select delayed/scheduled messages with a selector,
>> e.g. for custom properties ?
>>
>> cheers,
>> Tom
>>
>

Re: Message selectors and scheduled messages ?

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Tom,

note that scheduled messages are kept by the broker in a specialized
store, and will be sent to the queue/topic only when time comes. These
send messages have "scheduledJobId" property set, which you can use to
select them.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Thu, Sep 23, 2010 at 4:40 AM, Thomas Dudziak <to...@gmail.com> wrote:
> Hi,
>
> is there a way to select delayed/scheduled messages with a selector,
> e.g. for custom properties ?
>
> cheers,
> Tom
>