You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Alex Dean <ad...@meteostar.com> on 2010/08/03 22:13:57 UTC

Re: message filtering via ajax in 5.4?

On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:

> In 5.4, will ajax clients be able to specify per-subscription  
> filtering rules when subscribing to topics?  I don't see any obvious  
> support for this in the 5.4-SNAPSHOT amq.js code, but maybe I'm  
> missing it.  Would be very helpful to have, and I'd be happy to work  
> on the JavaScript side of things.  Is there support for filtering in  
> the MessageListenerServlet?

Is anyone able to answer this question?

thanks,
alex

Re: message filtering via ajax in 5.4?

Posted by Dejan Bosanac <de...@nighttale.net>.
Thanks Alex,

I'll take a look at this patch tomorrow!

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 Mon, Sep 13, 2010 at 3:45 PM, Alex Dean <al...@crackpot.org> wrote:
> Patch is ready for consideration :
> https://issues.apache.org/activemq/browse/AMQ-2874
>
> thanks,
> alex
>
> On Aug 5, 2010, at 8:41 AM, Dejan Bosanac wrote:
>
>> Hi Alex,
>>
>> I think the 4th optional parameter would work just fine. Can you raise
>> a Jira and attach patch there when you have it ready. Thanks!
>>
>> 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 Wed, Aug 4, 2010 at 8:13 PM, Alex Dean <ad...@meteostar.com> wrote:
>>>
>>> Thanks Dejan.  How do I send the 'selector' parameter via the amq.js
>>> addListener() function?  Looks like support for 'selector' would need to
>>> be
>>> added to addListener() and sendJmsMessage() somehow.  (Maybe an optional
>>> 4th
>>> parameter?)
>>>
>>>
>>> http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/js/amq.js?r=HEAD
>>>
>>> If you can think of a way you'd prefer to have this implemented, I'd be
>>> happy to code up a patch.
>>>
>>> alex
>>>
>>> On Aug 4, 2010, at 2:25 AM, Dejan Bosanac wrote:
>>>
>>>> Hi Alex,
>>>>
>>>> yes MessageListenerServlet supports selectors in the 'selector'
>>>> request parameter.
>>>>
>>>> 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 Tue, Aug 3, 2010 at 10:13 PM, Alex Dean <ad...@meteostar.com> wrote:
>>>>>
>>>>> On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:
>>>>>
>>>>>> In 5.4, will ajax clients be able to specify per-subscription
>>>>>> filtering
>>>>>> rules when subscribing to topics?  I don't see any obvious support for
>>>>>> this
>>>>>> in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it.  Would be
>>>>>> very
>>>>>> helpful to have, and I'd be happy to work on the JavaScript side of
>>>>>> things.
>>>>>>  Is there support for filtering in the MessageListenerServlet?
>>>>>
>>>>> Is anyone able to answer this question?
>>>>>
>>>>> thanks,
>>>>> alex
>>>>>
>>>
>>>
>
>

Re: message filtering via ajax in 5.4?

Posted by Alex Dean <al...@crackpot.org>.
Patch is ready for consideration : https://issues.apache.org/activemq/browse/AMQ-2874

thanks,
alex

On Aug 5, 2010, at 8:41 AM, Dejan Bosanac wrote:

> Hi Alex,
>
> I think the 4th optional parameter would work just fine. Can you raise
> a Jira and attach patch there when you have it ready. Thanks!
>
> 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 Wed, Aug 4, 2010 at 8:13 PM, Alex Dean <ad...@meteostar.com> wrote:
>> Thanks Dejan.  How do I send the 'selector' parameter via the amq.js
>> addListener() function?  Looks like support for 'selector' would  
>> need to be
>> added to addListener() and sendJmsMessage() somehow.  (Maybe an  
>> optional 4th
>> parameter?)
>>
>> http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/js/amq.js?r=HEAD
>>
>> If you can think of a way you'd prefer to have this implemented,  
>> I'd be
>> happy to code up a patch.
>>
>> alex
>>
>> On Aug 4, 2010, at 2:25 AM, Dejan Bosanac wrote:
>>
>>> Hi Alex,
>>>
>>> yes MessageListenerServlet supports selectors in the 'selector'
>>> request parameter.
>>>
>>> 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 Tue, Aug 3, 2010 at 10:13 PM, Alex Dean <ad...@meteostar.com>  
>>> wrote:
>>>>
>>>> On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:
>>>>
>>>>> In 5.4, will ajax clients be able to specify per-subscription  
>>>>> filtering
>>>>> rules when subscribing to topics?  I don't see any obvious  
>>>>> support for
>>>>> this
>>>>> in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it.   
>>>>> Would be
>>>>> very
>>>>> helpful to have, and I'd be happy to work on the JavaScript side  
>>>>> of
>>>>> things.
>>>>>  Is there support for filtering in the MessageListenerServlet?
>>>>
>>>> Is anyone able to answer this question?
>>>>
>>>> thanks,
>>>> alex
>>>>
>>
>>


Re: message filtering via ajax in 5.4?

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

I think the 4th optional parameter would work just fine. Can you raise
a Jira and attach patch there when you have it ready. Thanks!

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 Wed, Aug 4, 2010 at 8:13 PM, Alex Dean <ad...@meteostar.com> wrote:
> Thanks Dejan.  How do I send the 'selector' parameter via the amq.js
> addListener() function?  Looks like support for 'selector' would need to be
> added to addListener() and sendJmsMessage() somehow.  (Maybe an optional 4th
> parameter?)
>
> http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/js/amq.js?r=HEAD
>
> If you can think of a way you'd prefer to have this implemented, I'd be
> happy to code up a patch.
>
> alex
>
> On Aug 4, 2010, at 2:25 AM, Dejan Bosanac wrote:
>
>> Hi Alex,
>>
>> yes MessageListenerServlet supports selectors in the 'selector'
>> request parameter.
>>
>> 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 Tue, Aug 3, 2010 at 10:13 PM, Alex Dean <ad...@meteostar.com> wrote:
>>>
>>> On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:
>>>
>>>> In 5.4, will ajax clients be able to specify per-subscription filtering
>>>> rules when subscribing to topics?  I don't see any obvious support for
>>>> this
>>>> in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it.  Would be
>>>> very
>>>> helpful to have, and I'd be happy to work on the JavaScript side of
>>>> things.
>>>>  Is there support for filtering in the MessageListenerServlet?
>>>
>>> Is anyone able to answer this question?
>>>
>>> thanks,
>>> alex
>>>
>
>

Re: message filtering via ajax in 5.4?

Posted by Alex Dean <ad...@meteostar.com>.
Thanks Dejan.  How do I send the 'selector' parameter via the amq.js  
addListener() function?  Looks like support for 'selector' would need  
to be added to addListener() and sendJmsMessage() somehow.  (Maybe an  
optional 4th parameter?)

http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/js/amq.js?r=HEAD

If you can think of a way you'd prefer to have this implemented, I'd  
be happy to code up a patch.

alex

On Aug 4, 2010, at 2:25 AM, Dejan Bosanac wrote:

> Hi Alex,
>
> yes MessageListenerServlet supports selectors in the 'selector'
> request parameter.
>
> 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 Tue, Aug 3, 2010 at 10:13 PM, Alex Dean <ad...@meteostar.com>  
> wrote:
>>
>> On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:
>>
>>> In 5.4, will ajax clients be able to specify per-subscription  
>>> filtering
>>> rules when subscribing to topics?  I don't see any obvious support  
>>> for this
>>> in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it.  Would  
>>> be very
>>> helpful to have, and I'd be happy to work on the JavaScript side  
>>> of things.
>>>  Is there support for filtering in the MessageListenerServlet?
>>
>> Is anyone able to answer this question?
>>
>> thanks,
>> alex
>>


Re: message filtering via ajax in 5.4?

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

yes MessageListenerServlet supports selectors in the 'selector'
request parameter.

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 Tue, Aug 3, 2010 at 10:13 PM, Alex Dean <ad...@meteostar.com> wrote:
>
> On Jul 26, 2010, at 11:25 AM, Alex Dean wrote:
>
>> In 5.4, will ajax clients be able to specify per-subscription filtering
>> rules when subscribing to topics?  I don't see any obvious support for this
>> in the 5.4-SNAPSHOT amq.js code, but maybe I'm missing it.  Would be very
>> helpful to have, and I'd be happy to work on the JavaScript side of things.
>>  Is there support for filtering in the MessageListenerServlet?
>
> Is anyone able to answer this question?
>
> thanks,
> alex
>