You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ryan Yeats <ry...@octoconsulting.com> on 2020/09/02 14:54:26 UTC

Using ActiveMQServerPlugin for per consumer message filtering

My use case is that I want to extend Artemis to make policy decisions based on the message properties and a user subject. This API seems like it would be appropriate for this use case since there are touch points at each stage in message delivery, it has access to the session/subject and the message can be read and modified. However, I can't figure out how to prevent message delivery of a message to a single consumer without effecting other consumers. Is there a way to cancel deliver a message somewhere? I did not see anything in the MessageReference which would stop the delivery.

Regards,

Ryan

[Octo | Emerging Technology. Human Impact.]<https://www.octoconsulting.com/>

Re: Using ActiveMQServerPlugin for per consumer message filtering

Posted by Domenico Francesco Bruscino <br...@gmail.com>.
Hi Ryan,

I would suggest taking a look at the diverts[1]. They allow you to
transparently divert messages routed to one address to some other address
using a filter and they can also be configured to apply a Transformer[2] to
the diverted messages.

[1]
https://activemq.apache.org/components/artemis/documentation/latest/diverts.html
[2]
https://activemq.apache.org/components/artemis/documentation/latest/transformers.html

Regards,
Domenico

Il giorno mer 2 set 2020 alle ore 18:47 Ryan Yeats <
ryan.yeats@octoconsulting.com> ha scritto:

> My use case is that I want to extend Artemis to make policy decisions
> based on the message properties and a user subject. This API seems like it
> would be appropriate for this use case since there are touch points at each
> stage in message delivery, it has access to the session/subject and the
> message can be read and modified. However, I can't figure out how to
> prevent message delivery of a message to a single consumer without
> effecting other consumers. Is there a way to cancel deliver a message
> somewhere? I did not see anything in the MessageReference which would stop
> the delivery.
>
> Regards,
>
> Ryan
>
> [Octo | Emerging Technology. Human Impact.]<
> https://www.octoconsulting.com/>
>