【问题标题】:Connecting Apache ServiceMix to Websphere MQ将 Apache ServiceMix 连接到 Websphere MQ
【发布时间】:2012-03-08 21:38:26
【问题描述】:

我正在尝试从在 Apache Service Mix 上部署为 OSGI 包的骆驼路由连接到 websphere MQ 队列管理器。

我已经部署了 Websphere MQ 附带的 IBM OSGI 包,并按如下方式配置了 Spring 配置:-

<route>
    ....
    <to uri="websphere-mq:queue:TOMTEST" />
</route>

<bean id="websphere-mq" class="org.apache.camel.component.jms.JmsComponent">
    <property name="connectionFactory">
        <bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
            <property name="transportType">
                <util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" />
            </property>
            <property name="hostName" value="...hostname..." />
            <property name="port" value="...port..." />
            <property name="queueManager" value="...qm..." />
            <property name="channel" value="...channel..." />
            <property name="useConnectionPooling" value="true" />
        </bean>
    </property>
</bean>

在运行时我收到此错误 => java.lang.ClassNotFoundException: javax.net.ssl.HandshakeCompletedListener not found by com.ibm.msg.client.osgi.wmq

IBM 捆绑包都没有导入 javax.net.ssl,我真的不能重新捆绑它们吗?

有没有人设法从 servicemix/fuse - 4 连接到 WMQ?

非常感谢任何帮助。

提前非常感谢,汤姆

【问题讨论】:

    标签: ibm-mq apache-servicemix


    【解决方案1】:

    已在此处http://fusesource.com/forums/message.jspa?messageID=13274 回答。粘贴在下面:

    汤姆,

    好的,可以尝试其他方法...有时在处理奇怪的类加载问题时,尝试另一个 OSGi 框架会有所帮助。 Felix 和 Equinox 都实现了规范,但在底层处理方式不同。因此,要尝试使用 Equinox 而不是 Felix,请打开 etc/config.properties 并进行以下更改:

    karaf.framework=equinox

    确保在再次启动 ESB 之前也删除“数据”目录。

    【讨论】:

      猜你喜欢
      • 2017-09-24
      • 1970-01-01
      • 2015-07-08
      • 1970-01-01
      • 1970-01-01
      • 2012-01-25
      • 2017-06-25
      • 1970-01-01
      • 2015-06-04
      相关资源
      最近更新 更多