有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Apache Felix DOSGI单包和Zookeeper

我正试图在我的项目中实现基于局域网的服务发现。我部署了ApacheFelix和DOSGI单包分发版。此外,我还运行了ApacheHadoop Zookeeper服务器。我一直在学习本教程here

然而,我不知道它说的是什么意思

To configure the ZooKeeper client in CXF/Discovery the following configuration variables apply. They need to be set on Configuration Admin PID org.apache.cxf.dosgi.discovery.zookeeper.

然后说

An easy way to set the configuration, it by placing a file called org.apache.cxf.dosgi.discovery.zookeeper.cfg in the load directory created by the FileInstall bundle with the following content: zookeeper.host = 127.0.0.1

我遇到的问题是,我找不到FileInstall捆绑包应该创建的加载目录。我需要这个来完成我最后一年的项目,我的时间不多了

非常感谢在这方面的任何帮助

非常感谢

比利


共 (1) 个答案

  1. # 1 楼答案

    你应该自己创建load目录。如果愿意,您甚至可以将其配置为指向不同的目录。有关这方面的更多信息,请参阅ApacheFelix文件安装的文档:http://felix.apache.org/documentation/subprojects/apache-felix-file-install.html

    如果您正在进行基于LAN的服务发现,那么您可能需要考虑使用不同的发现协议(例如SLP)。p>

    还有,不知羞耻的插件,您可能还想看看Amdatu Remote,它将是更新的远程服务规范的参考实现:http://amdatu.org/components/remote.html