将Apache ServiceMix连接到Websphere MQ [英] Connecting Apache ServiceMix to Websphere MQ

查看:102
本文介绍了将Apache ServiceMix连接到Websphere MQ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过作为OSGI捆绑软件部署在Apache Service Mix上的骆驼路由连接到Websphere MQ队列管理器.

I am trying to connect to a websphere MQ queue manager from a camel route deployed as an OSGI bundle on Apache Service Mix.

我已经部署了Websphere MQ随附的IBM OSGI捆绑软件,并按照以下方式配置了Spring配置:-

I have deployed the IBM OSGI bundles that come with Websphere MQ and configured the Spring configuration as per below:-

<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:com.ibm.msg.client.osgi.wmq找不到javax.net.ssl.HandshakeCompletedListener

At runtime I'm getting this error => java.lang.ClassNotFoundException: javax.net.ssl.HandshakeCompletedListener not found by com.ibm.msg.client.osgi.wmq

没有一个IBM捆绑软件导入javax.net.ssl,我真的不能将它们重新捆绑吗?

None of the IBM bundles import javax.net.ssl and I can't really re-bundle them?

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

Has anyone managed to get a connection working to WMQ from servicemix/fuse - 4 ?

非常感谢您的帮助.

谢谢你,汤姆

推荐答案

在这里回答了 http ://fusesource.com/forums/message.jspa?messageID = 13274 .粘贴到下面:

Was answered here http://fusesource.com/forums/message.jspa?messageID=13274 . Pasting it below:

汤姆

好的,还有其他尝试...有时在处理奇怪的类加载问题时,它有助于尝试另一个OSGi框架. Felix和Equinox都实现了规范,但是在后台却采取了不同的方法.因此,要尝试使用Equinox代替Felix,请打开etc/config.properties并进行以下更改:

OK, something else to try... sometimes when dealing with odd classloading issues, it helps to try out another OSGi framework. Felix and Equinox both implement the spec but approach things differently under the hood. So, to try out Equinox instead of Felix open up etc/config.properties and make the following change:

karaf.framework = equinox

karaf.framework=equinox

在再次启动ESB之前,请确保还删除数据"目录.

Make sure to also delete the "data" dir before start the ESB again.

这篇关于将Apache ServiceMix连接到Websphere MQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆