我正在尝试设置IBM MQ 7.5.0.2 + Glassfish 4(Payara)JDK 8,并使用Camel Integration作为客户端我已经遵循了部署RAR的方法,但是无法建立从Glassfish到MQ的连接连接池ping失败,指出“对MyPool进行Ping连接池失败。MQJCA1011:无法分配JMS连接。,错误代码:MQJCA1011,请检查server.log以获取更多详细信息。”
在服务器日志中,我看到以下内容:
[#|2017-03-24T08:40:31.494+1100|WARNING|Payara 4.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=111;_ThreadName=org.springframework.jms.listener.DefaultMessageListenerContainer#0-1;_TimeMillis=1490305231494;_LevelValue=900;|RAR5038:Unexpected exception while creating resource for pool MyPool. Exception : com.ibm.mq.connector.DetailedResourceException: MQJCA1011: Failed to allocate a JMS connection., error code: MQJCA1011 An internal error caused an attempt to allocate a connection to fail. See the linked exception for details of the failure.|#]
RAR5117 : Failed to obtain/create connection from connection pool [ MyPool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: MQJCA1011: Failed to allocate a JMS connection., error code: MQJCA1011|#]
我关注以下内容:https://genericjmsra.java.net/docs/websphere-mq-integration-guide/webspheremq_integration_guide.html
我遇到了类似的问题,我的问题是频道被CHLAUTH规则阻止。我通过使用IBM Integration Console上的以下命令在通道上禁用授权来解决此问题: