RE: Artemis management API: getting message counts

2022-11-04 Thread John Lilley
I’ve also tried ensuring that a queue exists, by creating the queues we will use. However, it looks like the JMS call to Session.createQueue() doesn’t really create the queue. Are queues created lazily? Is there a way to force queue creation? Thanks john [rg]

Artemis management API: getting message counts

2022-11-04 Thread John Lilley
Greetings, To get the message count of a queue using the Artemis management API, we are doing ClientMessage request = clientSession.createMessage(false); ManagementHelper.putAttribute(request, ResourceNames.QUEUE + queueName, “MessageCount”); ClientMessage reply = client.request(request); if (M

RE: Artemis: Enumerating messages without consuming them

2022-11-04 Thread John Lilley
Thanks! [rg] John Lilley Data Management Chief Architect, Redpoint Global Inc. 888 Worcester Street, Suite 200 Wellesley, MA 02482 M: +1 7209385761 | john.lil...@redpointglobal.com From: Justin Bertram Sent: Friday,

Practical limit on #queues in Artemis

2022-11-04 Thread John Lilley
Greetings, We create a queue per “job” and there can be a lot of jobs. We tend to keep them around for a while (like an hour) to service job status after the job is complete, but this can result in a lot of mostly-idle queues. Is there a practical limit at which Artemis becomes unhappy (low m

Re: Artemis: Enumerating messages without consuming them

2022-11-04 Thread Justin Bertram
Yes, you could definitely use a JMS QueueBrowser. I didn't mention it because you were already using the core API. If you used the core JMS client then the QueueBrowser implementation would use the core API's browse-only consumer under the covers. The advantage with using JMS is that it's an API an

RE: Artemis: Enumerating messages without consuming them

2022-11-04 Thread John Lilley
Thanks! I also see that I could use a JMS QueueBrowser. Is there an advantage to one over the other? John [rg] John Lilley Data Management Chief Architect, Redpoint Global Inc. 888 Worcester Street, Suite 200 Wellesley, MA 02482 M: +1 7209385761 | john

Re: Artemis: Enumerating messages without consuming them

2022-11-04 Thread Justin Bertram
It is possible to browse the messages of a queue using the management API. This is what the web console does when it displays the messages in a queue. However, if you're using the core API then the most straight-forward way to browse messages on a queue is with a browse-only consumer (e.g. using o.

Artemis: Enumerating messages without consuming them

2022-11-04 Thread John Lilley
In Artemis, using the management API (ClientRequestor, ManagementHelper), is there a way to browse the contents of a queue without consuming the messages? We need more than just the count, we actually need to examine each message. Thanks John [rg] John Lilley

RE: Problem with Artemis auto-delete queues

2022-11-04 Thread Vilius Šumskas
Yes, sorry I replied to the wrong thread. -- Vilius From: John Lilley Sent: Friday, November 4, 2022 2:34 PM To: users@activemq.apache.org Subject: RE: Problem with Artemis auto-delete queues Vilius, Unless someone has a solution to this (apparent) bug, we will probably do a similar manua

RE: Problem with Artemis auto-delete queues

2022-11-04 Thread John Lilley
Vilius, Unless someone has a solution to this (apparent) bug, we will probably do a similar manual cleanup sweep. Although I’d like to use a management API. Currently looking into the message-based interface. Thanks john [rg] John Lilley Data Management