【问题标题】:Connect to WMQ with Jboss Developer Studio使用 Jboss Developer Studio 连接到 WMQ
【发布时间】:2018-01-29 19:02:22
【问题描述】:

我正在尝试从 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.2com.ibm.msg.client.osgi.jms.prereq_7.5.0.2 添加到我的本地 Maven 存储库中。

【问题讨论】:

    标签: maven jboss jbossfuse jboss-esb jboss-developer-studio


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-28
      • 1970-01-01
      • 2018-04-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多