[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ARTEMIS] Limit number of concurrent clients (not conumsers) that can consume from a queue

Have you taken a look at the <max-connections> from <resource-limits> [1]?
You don't give many details about your use-case so it's unclear whether or
not that would be a fit for you.



On Tue, Sep 4, 2018 at 3:19 PM, <jo.stenberg@xxxxxxxxxxxx> wrote:

> We want to only allow a single client instance (TCP connection) to consume
> from a particular queue at a time for security reasons. This client
> instance may create multiple consumers (with different message filters) on
> that queue thus we cannot use the max-consumers address settings to achieve
> this.
> Is that somehow configurable out of the box and if not can someone give me
> some hints if/how I implement such a check as a plugin (esp. how can I
> acquire the current consumers of a queue and retrieve the corresponding
> remoteConnection object).
> Thanks
> - Jo