简体   繁体   English

捆绑包安装在两个 Karaf 实例上

[英]bundles get installed on both Karaf instances

I want to make a "communication" between two Karaf instances and I decided to use Karaf Cellar in order to do that.我想在两个Karaf实例之间进行“通信”,为此我决定使用Karaf Cellar

I, now, have two bundles each one is installed on a Karaf container.我现在有两个包,每个包都安装在一个 Karaf 容器上。 They are identified by an address and port provided in hazelcast.xml.它们由hazelcast.xml 中提供的地址和端口标识。

My problem is when I restart both Karaf containers I have bundles which are installed on Karaf (A) that got installed on Karaf (B) and vice versa.我的问题是当我重新启动两个 Karaf 容器时,我有安装在 Karaf (A) 上的捆绑包,这些捆绑包安装在 Karaf (B) 上,反之亦然。

Now I have the same bundles installed on both Karaf containers.现在我在两个Karaf 容器上安装了相同的包。

Is there anyway to stop this behaviour?有没有办法阻止这种行为?

The answer was in the org.apache.karaf.cellar.groups.cfg file.答案在org.apache.karaf.cellar.groups.cfg文件中。

Had to set default.bundle.sync value to disabled and not cluster .必须将default.bundle.sync值设置为disabled而不是cluster

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

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