admin管理员组文章数量:1318573
To upgrade java 17, camel 2 is not support anymore.
In camel migration guide .html,
The camel-zookeeper has its route policy functionality removed, instead use ZooKeeperClusterService or the camel-zookeeper-master component.
Therefore my karaf application with camel 2 ZooKeeperRoutePolicy
is not work anymore. Here's my previous configuration in camel 2:
<blueprint ...>
<!-- Zookeeper Policy -->
<bean id="zookeeperPolicy" activation="eager" class=".apache.camelponent.zookeeper.policy.ZooKeeperRoutePolicy">
<argument value="zookeeper:$(zookeeper.server)/tasks/xxx-interfaces" />
<argument value="1" />
</bean>
...
<camelContext xmlns=";>
...
<route id="route-xxx" streamCache="true" routePolicyRef="zookeeperPolicy">
<from uri="file:/..." />
<to uri="file:/..." />
</route>
whether $(zookeeper.server) is AAA-BB-CCC1:2181,AAA-BB-CCC2:2181,AAA-BB-CCC3:2181
In camel clustering page .html, there is an example to setup:
<bean id="zx" class=".apache.camelponent.zookeeper.cluster.ZooKeeperClusterService">
<property name="id" value="node-1"/>
<property name="basePath" value="/camel/cluster"/>
<property name="nodes" value="localhost:2181"/>
</bean>
<camelContext xmlns="; autoStartup="false">
...
</camelContext>
However, the most important part is dot dot dot (...). I have no idea on how to configure to use the ZooKeeperClusterService for my route in the camelContext.
How could it be setup so that it can have the same behavior with camel 2 ZooKeeperRoutePolicy?
本文标签: How to use camel 3 ZooKeeperClusterService to replace deprecated ZooKeeperRoutePolicyStack Overflow
版权声明:本文标题:How to use camel 3 ZooKeeperClusterService to replace deprecated ZooKeeperRoutePolicy? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742048673a2417943.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论