繁体   English   中英

JMS应用程序无法刷新与ibm mq的连接

[英]Jms app could not refesh connection with ibm mq

我有Ibm mq服务器,我试图从我的应用程序连接到它。 我的应用程序已部署在Websphere 8.5.5 Im上,用于使用spring(JmsTemplate)连接到ibm mq服务器ibm实现(MQQueueConnectionFactory)。

当我将其部署在tomcat上并且尝试连接到远程ibm mq服务器时-没问题。 我可以打磨并接收表单队列中的信息,但是当我在Websphere上部署应用程序时,会遇到以下异常:

[1395,maxpri=10]] c.c.b.o.s.impl.StandardSequencer : [ - default - ] Server 1,001 has acquired/renewed the lock on sequencer 1,001. [sequencer:169] [Object=null, Object=null, Object=null, userid=null, uuid=null]

[10/12/18 10:15:59:977 UTC] 000062ea SystemOut O 2018-10-12 10:15:59.977 ERROR 774 --- [enerContainer-1] o.s.j.l.DefaultMessageListenerContainer : Could not refresh JMS Connection for destination 'QUeueTest' - retrying using FixedBackOff{interval=5000, currentAttempts=70, maxAttempts=unlimited}. Cause: JMSFMQ6312: An exception occurred in the Java(tm) MQI.; nested exception is com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195;AMQ9546: Error return code received. [1=java.lang.reflect.InvocationTargetException[null],3=GeneratedConstructorAccessor678.newInstance]

我认为有问题的部分是重磅炸弹,但我知道如何解决它。 因此,我想使用activemq实现作为客户端来连接到ibm mq服务器。 有可能的 ? 谢谢您的回答。

我解决了这个问题。

该应用程序已部署在Websphere服务器上。 我部署了所有jar,但未提供范围。 这是错误的。 当应用程序在服务器上时,仅需要wmq.jmsra jars。

        <groupId>com.ibm.mq</groupId>

        <artifactId>com.ibm.mq.allclient</artifactId>

        <version>9.0.4.0</version>

        <scope>provided</scope>

    </dependency>



    <!-- https://mvnrepository.com/artifact/com.ibm.mq/wmq.jmsra -->

    <dependency>

        <groupId>com.ibm.mq</groupId>

        <artifactId>wmq.jmsra</artifactId>

        <version>9.0.4.0</version>

        <type>rar</type>

        <scope>compile</scope>

    </dependency>

谢谢你的帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM