170.3.5. JMX サービス URL


デフォルトの JMX サービス URL の形式は、以下のようになります。

Copy to Clipboard Toggle word wrap
service:jmx:rmi:///jndi/rmi://localhost:<registryPort>/<serviceUrlPath>

registryPort は RMI レジストリーポートで、デフォルト値は 1099 です。

システムプロパティーで RMI レジストリーポートを設定できます。

Copy to Clipboard Toggle word wrap
-Dorg.apache.camel.jmx.rmiConnector.registryPort=<port number>

または、Spring 設定の camelContext 要素内に jmxAgent 要素を追加します。

Copy to Clipboard Toggle word wrap
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
  <jmxAgent id="agent" createConnector="true" registryPort="port number"/>
    ...
</camelContext>

serviceUrlPath は URL のパス名で、デフォルト値は /jmxrmi/camel です。

システムプロパティーでサービス URL パスを設定できます。

Copy to Clipboard Toggle word wrap
-Dorg.apache.camel.jmx.serviceUrlPath=<path>
ヒント

Java での ManagementAgent の設定

Camel 2.4 以降では、ManagementAgent でさまざまなオプションを設定することもできます。

Copy to Clipboard Toggle word wrap
context.getManagementStrategy().getManagementAgent().setServiceUrlPath("/foo/bar");
context.getManagementStrategy().getManagementAgent().setRegistryPort(2113);
context.getManagementStrategy().getManagementAgent().setCreateConnector(true);

または、Spring 設定の camelContext 要素内に jmxAgent 要素を追加します。

Copy to Clipboard Toggle word wrap
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
  <jmxAgent id="agent" createConnector="true" serviceUrlPath="path"/>
    ...
</camelContext>

デフォルトでは、RMI サーバーオブジェクトは動的に生成されたポートをリッスンします。これは、ファイアウォールを介して確立される接続に問題となる可能性があります。このような状況では、システムプロパティーによって RMI 接続ポートを明示的に設定できます。

Copy to Clipboard Toggle word wrap
-Dorg.apache.camel.jmx.rmiConnector.connectorPort=<port number>

または、Spring 設定の camelContext 要素内に jmxAgent 要素を追加します。

Copy to Clipboard Toggle word wrap
<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
  <jmxAgent id="agent" createConnector="true" connectorPort="port number"/>
    ...
</camelContext>

コネクターポートオプションが設定されると、JMX サービス URL は以下のようになります。

Copy to Clipboard Toggle word wrap
service:jmx:rmi://localhost:<connectorPort>/jndi/rmi://localhost:<registryPort>/<serviceUrlPath>
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat, Inc.