問題タブ [jolokia]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
openshift - Jolokia エンドポイントは、オープン シフトでスプリング ブート アクチュエーターを介して公開されません。
がありcamel application which is running in spring boot 2、キャメル ルートが で視覚化されhawtioます。とall actuator endpoints are exposed including jolokia endpoint
this application is completely working in locallocal でアクチュエーター エンドポイントにアクセスしようとするとhttp://localhost:8080/actuator/、他の 16 のエンドポイント (ヘルス、情報など) と共にエンドポイントの下に表示されます。
私は持っていますがdeployed the in same Openshift、しようとするとaccess actuator endpoints in Openshift
見ることができましたonly 16 endpoints without jolokia endpoint
アプリケーション起動時のログインlocal
アプリケーション起動時のログインOpenshift
INFO : Registered '/actuator/jolokia' to jolokia-actuator-endpointログにOpenshiftないため、明らかに登録されていませんspring boot actuator
何か考えはありwhy jolokia is not exposed via spring boot actuatorますか?
このため、hawtioキャメル ルート (JMX) にアクセスできません。
apache-camel - Hawtio camel デバッグ パネルには、「このユーザーにはデバッグは許可されていません」と表示されます
私の環境は次のとおりです。
servicemix 5.4.1 [system.properties にはプロパティ "hawtio.authenticationEnabled=false" があります]
jolokia エージェント 1.6.2
スタンドアロン hawtio 2.10
apache camel 2.14.3
まずはservicemixを起動
次に、「java -jar jolokia-jvm-1.6.2-agent.jar list」を使用して karaf プロセス ID を検索し
、「java -jar jolokia-jvm-1.6.2-agent.jar --port 7777 start 21284」を使用して接続しますjolokia から karaf JVM へ
次に、「java -jar hawtio-app-2.10.0.jar」を実行して、スタンドアロンの hawtio アプリを起動します
Blueprint DSL を使用しています
私のCamelエンドポイントは
私のCamelContextは
これを解決するために私を助けてください、私を助けることができる情報を本当に見つけることができませんでした.
spring - RestTemplate ブラケットとスラッシュを使用した Get リクエスト
以下の URL と RestTemplate を使用してデータを取得しています http://localhost:8161/console/jolokia/exec/org.apache.activemq.artemis:broker="0.0.0.0"/listQueues/{"field":"", "操作":"","値":""}/1/100
そして、私のコードは以下のようになります
上記のコードから、以下のエラーが発生しています
RestTempate で URL に / を指定して {} を渡す方法はありますか?
以下の解決策を試しましたが、うまくいきません。
https://stackoverflow.com/questions/43917408/resttemplate-request-with-braces
https://stackoverflow.com/questions/41267993/how-to-properly-escape-a-url-to-be-used-in-resttemplate-that-has-flower-brackets?noredirect=1&lq=1
誰でもこれで私を助けてください。
