简体   繁体   English

Apache camel组件参数

[英]Apache camel component parameter

I am writing a custom component for camel. 我正在为骆驼写一个自定义组件。 The component depends on a inputstream and an outputstream. 该组件取决于输入流和输出流。 I am using camel on different java vms where the process of acquiring these streams differs. 我在不同的java vms上使用camel,其中获取这些流的过程不同。 Is there a way to pass the two streams to the component/endpoint when creating a route consuming/producing from my endpoint? 在创建从我的端点使用/生成的路由时,有没有办法将两个流传递给组件/端点?

If you are trying to communicate between different vm-s you could use either vm or seda endpoints. 如果您尝试在不同的vm-s之间进行通信,则可以使用vm或seda端点。

http://camel.apache.org/vm.html http://camel.apache.org/vm.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM