我正在尝试使用Jolokia REST请求监视Apache ActiveMQ中的特定队列。
当我尝试通过本地托管的ActiveMQ发出此请求时,我会以文本形式正确获得响应。
{
"request": {
"mbean": "org.apache.activemq:brokerName=localhost,destinationName=SOME_QUEUE,destinationType=Queue,type=Broker",
"type": "read"
},
"value": {
"ProducerFlowControl": true,
"Options": "",
"AlwaysRetroactive": false,
"MemoryUsageByteCount": 0,
"AverageBlockedTime": 0
.
.
.
"MaxMessageSize": 0,
"UseCache": true,
"SlowConsumerStrategy": null
},
"timestamp": 1555397540,
"status": 200
}
但是,当我尝试通过AWS托管的Apache ActiveMQ执行相同操作时,却收到未找到错误。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 </title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /api/jolokia/read/org.apache.activemq:type=Broker,brokerName=activemqappuat,destinationType=Queue,destinationName=JPPL.PUBLISHEVENTS.UAT. Reason:
<pre> Not Found</pre>
</p>
<hr />
<i>
<small>Powered by Jetty://</small>
</i>
</body>
</html>
有人可以帮忙解决什么问题吗?