0

我正在尝试从 JBoss Developer Studio 连接到 WMQ。我收到以下错误:

Unable to start bundle: com.ibm.msg.client.osgi.jms [10]

我的配置:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd                            http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="org.apache.camel.component.jms.JmsConfiguration" id="wmqConfig">
    <property name="connectionFactory" ref="wmqConnectionFactory"/>
    <property name="concurrentConsumers" value="10"/>
</bean>
<bean class="org.apache.camel.component.jms.JmsComponent" id="wmq">
    <property name="configuration" ref="wmqConfig"/>
</bean>
<bean class="com.ibm.mq.jms.MQQueueConnectionFactory" id="wmqConnectionFactory">
    <property name="transportType" value="1"/>
    <property name="hostName" value="10.0.**.**"/>
    <property name="port" value="1414"/>
    <property name="queueManager" value="MQ_ADM"/>
    <property name="targetClientMatching" value="true"/>
</bean>
<bean class="com.ibm.mq.jms.MQQueue" id="WMQ-Queue">
    <property name="baseQueueManagerName" value="MQ_ADM"/>
    <property name="baseQueueName" value="MQ_QUEUE"/>
    <property name="targetClient" value="1"/>
</bean>
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
    <route id="wmq-to-amq-bridge">
        <from id="_from1" uri="jms:queue:wmq"/>
        <to id="_to1" uri="file:C:/queue/"/>
    </route>
</camelContext>

我已将com.ibm.msg.client.osgi.jms_7.5.0.2和添加com.ibm.msg.client.osgi.jms.prereq_7.5.0.2到我的本地 Maven 存储库。

4

1 回答 1

0

“无法启动捆绑包”消息有时可能伴随着更多详细信息。如果是,它可能对故障排除有用。无论如何,我的经验是,如果您在 OSGi 环境中运行,您将需要一整套符合 IBM W-MQ OSGi 的捆绑包。我记得,其中有九个。com.ibm.msg.client.osgi.jms.prereq 可能是您想要的,因为 OSGi 环境(在这种情况下我猜是 Fuse 6.x)可能有 javax.jms 的提供者包已经。

于 2017-08-24T12:43:42.303 回答