Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 带有ApacheKaraf2.3.1的ActiveMQ_Java_Osgi_Activemq_Apache Karaf_Osgi Bundle - Fatal编程技术网

Java 带有ApacheKaraf2.3.1的ActiveMQ

Java 带有ApacheKaraf2.3.1的ActiveMQ,java,osgi,activemq,apache-karaf,osgi-bundle,Java,Osgi,Activemq,Apache Karaf,Osgi Bundle,我已经分别运行了ActiveMQ 5.8.0和Karaf 2.3.1 我在Karaf所做的是:(已经安装了所有其他:spring、cxf、camel) features:addUrl mvn:org.apache.activemq/activemq-karaf/5.8.0/xml/features osgi:install-s mvn:org.apache.activemq/activemq camel/5.8.0 功能:列表| grep mq显示: [uninstalled] [2.11.

我已经分别运行了ActiveMQ 5.8.0和Karaf 2.3.1

我在Karaf所做的是:(已经安装了所有其他:spring、cxf、camel)

  • features:addUrl mvn:org.apache.activemq/activemq-karaf/5.8.0/xml/features
  • osgi:install-s mvn:org.apache.activemq/activemq camel/5.8.0
功能:列表| grep mq
显示:

[uninstalled] [2.11.0         ] camel-amqp                              camel-2.11.0
[uninstalled] [2.11.0         ] camel-mqtt                              camel-2.11.0
[uninstalled] [5.8.0          ] activemq-client                         activemq-5.8.0
[uninstalled] [3.1.3.RELEASE  ] spring                                  activemq-5.8.0
[uninstalled] [5.8.0          ] activemq-broker                         activemq-5.8.0
[uninstalled] [5.8.0          ] activemq-http                           activemq-5.8.0
[uninstalled] [5.8.0          ] activemq-camel                          activemq-5.8.0
[uninstalled] [5.8.0          ] activemq-web-console                    activemq-5.8.0
如果我安装
activemq代理
,它将安装服务器和activemq的所有内容,我不需要这些

在我的一个捆绑包中,我公开了camelcxf端点,从该端点向队列发送消息。问题是,当我尝试安装捆绑包时,它会给我一个错误:

missing requirement [169.0] osgi.wiring.package; (osgi.wiring.package=org.apache.activemq)
我知道Karaf中安装的一些功能必须导出这个包:
org.apache.activemq
,但它们没有

我找不到在Karaf中安装哪些功能的任何信息,这些功能将单独使用activemq。我不希望Karaf在其中运行ActiveMQ。我只需要安装必要的功能


有人能告诉我为此需要安装哪些功能吗?

我找到了解决方案。我只需要安装
activemq客户端
。这不会安装所有其他功能

features:install activemq-client

我找到了解决办法。我只需要安装
activemq客户端
。这不会安装所有其他功能

features:install activemq-client