Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ActiveMQ Tips

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

[Queue Status]

1, Direct web page view: 127.0.0.1:8161/admin/queues.jsp

2、curl(Queue Size with STOMP)

curl -u admin:admin http://127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=QueueName

3、Apache ActiveMQ > Connectivity > Protocols > REST

Python + Requests View

#encoding: utf-8#author: walker#date: 2017-09-20#summary: View ActiveMQ queue information import sysimport jsonimport requestsfrom requests.auth import HTTPBasicAuthfrom pprint import pprint#View ActiveMQ queue information def DisplayQueueInfo(queueName): username = 'admin' password = 'admin' url = 'http://127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=' + queueName r = requests.get(url, auth=HTTPBasicAuth(username, password)) print('%s:' % queueName) pprint(json.loads(r.text))

*** walker ***

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report