Hi Naveen,

I'm not an expert in ActiveMQ Artemis, and may answer incorrectly, but I
have seen some cases when temporary queues are used.
Usually there is no need to use management API to create a temporary queue.
As it seems to me, the purpose of temporary queues is to be auto-created
and auto-deleted without any management actions.

Temporary queue is created under some address, and the address can also be
temporary (if the application has permissions to delete it when
disconnecting).
For example, when running JMSToolBox (open source utility for working with
different message brokers), it connects to Artemis and creates (or requests
to auto-create?) an address with an UUID-like name with the same queue.

Another case of using temporary queues is non-durable subscription. When an
application subscribes to the topic (multicast address), in some conditions
it creates a temporary queue on this address.
There should be createNonDurableQueue, deleteNonDurableQueue permissions on
this address, and createAddress if an address also doesn't exist. As far as
I know, address-settings should also allow auto-creation of addresses and
queues.

Permissions can be granted to the address and fully-qualified queue name,
but temporary queue names are usually random. If an application uses a
temporary queue on the specific address, it is possible to grant
permissions to this address (and all queues on this address).
It is not possible to specify granular permissions for the address when
it's name is random, but one of our developers has made some small change
in JMSToolBox Artemis module which adds some prefix to the name, so we can
add permissions on this prefix and grant any user to connect with
JMSToolBox without having full permissions on the broker.
We have used two methods to configure permissions: API operation
addSecuritySettings, and security-settings in the broker.xml (the latter
was preferable for us).

ср, 24 апр. 2024 г. в 19:30, Naveen kumar <gnaveen.g...@gmail.com>:

> Hi Team,
>
> Any update please ?
>
> Regards ,
> Naveen
>
> > On 22 Apr 2024, at 5:25 PM, Naveen kumar <gnaveen.g...@gmail.com> wrote:
> >
> > Hi Team,
> >
> > Any update on below please ?
> >
> > Regards,
> > Naveen
> >
> >> On 16 Apr 2024, at 11:59 AM, Naveen kumar <gnaveen.g...@gmail.com>
> wrote:
> >>
> >> Hi Team,
> >>
> >> We have the below question on temporary queues in Artemis MQ in eks .
> Could you please help us with answer for the below ones,
> >>
> >> 1. When are temporary queues used ?
> >> 2. How are temporary queues created ?
> >> 3. Is there any API call to create temporary queue using JMX?
> >> 4. How can granular access management for temporary queues are specified
> >>
> >>
> >> Regards,
> >> Naveen
>

Reply via email to