如何解决404错误,以响应来自Apache ActiveMQ的Jolokia REST请求

时间:2019-04-16 07:00:28

标签: activemq jolokia

我正在尝试使用Jolokia REST请求监视Apache ActiveMQ中的特定队列。

当我尝试通过本地托管的ActiveMQ发出此请求时,我会以文本形式正确获得响应。

http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=SOME_QUEUE

{
    "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执行相同操作时,却收到未找到错误。

https://b-d5bc797b-2e17-41d2-ad8c-127ba48c6238-1.mq.eu-west-1.amazonaws.com:8162/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=activemqappuat,destinationType=Queue,destinationName=JPPL.PUBLISHEVENTS.UAT

<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>

有人可以帮忙解决什么问题吗?

0 个答案:

没有答案