1 回答
TA贡献1851条经验 获得超3个赞
好了,经过一些测试,我在Camel Configuration中读取了此参数
bridgeEndpoint Default:false Camel 2.16.0: If bridgeEndpoint is true, the producer will ignore the topic header setting of the message.
因此,我尝试添加到我的终点
<!--DEFINE KAFKA'S TOPCIS AS ENDPOINT-->
<endpoint id="tagBlink" uri="kafka:10.0.0.165:9092">
<property key="topic" value="tagBlink"/>
<property key="topic" value="tagBlink"/>
<property key="brokers" value="10.0.0.165:9092"/>
<property key="bridgeEndpoint " value="true"/>
</endpoint>
<!--END OF KAFKA'S TOPICS's AS ENDPOINT-->
<endpoint id="testMike" uri="kafka:10.0.0.165:9092">
<property key="topic" value="testMike"/>
<property key="brokers" value="10.0.0.165:9092"/>
<property key="bridgeEndpoint " value="true"/>
</endpoint>
并且无限循环停止了。
添加回答
举报