簡體   English   中英

使用Jboss Developer Studio連接到WMQ

[英]Connect to WMQ with Jboss Developer Studio

我正在嘗試從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存儲庫中。

“無法啟動捆綁包”消息有時可能會附帶更多詳細信息。 如果是這樣,則對於故障排除可能很有用。 無論如何,我的經驗是,如果您在OSGi環境中運行,則將需要一整套與IBM W-MQ OSGi兼容的捆綁軟件。 我記得其中有九個。 com.ibm.msg.client.osgi.jms.prereq可能是您想要的,因為OSGi環境(在這種情況下,我猜是Fuse 6.x)可能具有javax.jms的提供程序。已打包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM