Re: Artemis REST API

2023-03-27 Thread Justin Bertram
The main thing to understand here is that broker management is based on JMX MBeans. MBeans are available to manage essentially all of the broker's resources (e.g. addresses, queues, bridges, acceptors, cluster-connections, the broker itself, etc.). As required by JMX, each MBean has a unique name,

Re: Artemis REST API

2023-03-23 Thread Lachezar Dobrev
You can navigate the Artemis web console, and in the list of 'Operations' you can use the three-dots menu to 'Copy Jolokia URL'. For an example the countMessages() method on the DQL can be called with: http://172.17.0.2:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=!%22broker!%22,

Re: Artemis REST API

2023-03-23 Thread Thai Le
Thank you for the reference, i checked them but still confused about how to navigate between different Control classes. As i understand, this url http://localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker=\"0.0.0.0\"/QueueNames mean to execute the getQueueNames method but how do

Re: Artemis REST API

2023-03-22 Thread Domenico Francesco Bruscino
the partial list of the Management API MBeans is in the documentation[1], i.e. to list the addresses you can use the getQueueNames method of ActiveMQServerControl curl -v -H "Origin: http://localhost"; -u admin:admin http://localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker=\ "

Re: Artemis REST API

2023-03-22 Thread Thai Le
Hi again, The example of the curl command to jolokia endpoint is fetching the Version attribute of the org.apache.activemq.artemis:broker mbean, is there other mbean like address, queue, message that i can query? On Sat, 11 Mar 2023 at 11:28, Thai Le wrote: > I was actually looking for the manag

Re: Artemis REST API

2023-03-11 Thread Thai Le
I was actually looking for the management API, thanks for pointing out the differences. I'll look into jolokia endpoint. Thai Le On Sat, Mar 11, 2023, 10:28 Justin Bertram wrote: > When you say "REST API" do you mean the REST *messaging* API or the > REST-like *management* API? > > We still hav

Re: Artemis REST API

2023-03-11 Thread Justin Bertram
When you say "REST API" do you mean the REST *messaging* API or the REST-like *management* API? We still have the REST-like management API [1] which you can use to get data from the broker like queue message counts, browse messages, etc. This API is provided via the Jolokia JMX-HTTP bridge which a

Re: Artemis REST API

2023-03-11 Thread Thai Le
Thank you for the detail explanation. I was looking for a quick way to get info about queues (number of messages avail, peak some messages...) for debugging purpose. I guess I just need to make an stand alone app and use Java client to get those info. Thai Le On Fri, Mar 10, 2023, 12:57 Justin Be

Re: Artemis REST API

2023-03-10 Thread Justin Bertram
As Robbie noted, the REST interface was removed in 2.26.0. You can find the original discussion regarding removal here [1]. As I understand it, here are the essential reasons for removing it: - The dependencies had fallen woefully out-of-date and nobody was willing to put in the effort to fix the

Re: Artemis REST API

2023-03-10 Thread Robbie Gemmell
It was removed in 2.26.0 about 6 months ago, see details at https://activemq.apache.org/components/artemis/documentation/latest/versions.html On Thu, 9 Mar 2023 at 22:52, Thai Le wrote: > > Hello, > > Does the REST API still exist in the latest version? I do not see it in the > doc of 2.28. > > R