我正在尝试从 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 存储库。