将Worklight JMS适配器连接到Websphere MQ Server

时间:2014-07-02 09:10:10

标签: jms ibm-mobilefirst ibm-mq worklight-adapters worklight-server

我在调用JMS适配器时遇到以下错误(连接到Websphere MQ Server) “收到JMS连接异常:null。关闭连接”

请参阅以下配置(initialContextFactory,connectionFactory和destination) 的 MQJMSAdapter.xml

<connectivity>
    <connectionPolicy xsi:type="jms:JMSConnectionPolicyType">
        <!-- uncomment this if you want to use an external JNDI  repository -->
        <namingConnection url="file:/C:/JNDI-DIRECTORY/"
            initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory"
        />
        <jmsConnection
            connectionFactory="myCF"
        />
    </connectionPolicy>
    <loadConstraints maxConcurrentConnectionsPerNode="10"/>
</connectivity>

我已在本地计算机上安装并配置了IBM Websphere MQ服务器,并按照以下指南配置JNDI namesapce和管理对象

http://pic.dhe.ibm.com/infocenter/prodconn/v1r0m0/index.jsp?topic=%2Fcom.ibm.scenarios.wmqwasmig2v7.doc%2Ftopics%2Fins_sample.htm

请提供您的意见。在此先感谢

0 个答案:

没有答案