第 283 章 RMI 组件
作为 Camel 版本 1.0 可用
rmi: 组件将交换绑定到 RMI 协议(JRMP)。
由于此绑定仅使用 RMI,因此正常的 RMI 规则仍适用于可以调用的方法。此组件只支持从扩展 远程 接口的接口执行方法调用的 Exchange。方法中的所有参数都应是 Serializable 或 Remote 对象。
Maven 用户需要将以下依赖项添加到其 pom.xml 中:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-rmi</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>283.1. URI 格式
rmi://rmi-regisitry-host:rmi-registry-port/registry-path[?options]
例如:
rmi://localhost:1099/path/to/service
您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…