MDB和持续集成

时间:2018-10-12 09:06:15

标签: wildfly ibm-mq mq

我们正在使用Wildfly 11,那里有一些来自第三方提供商的MessageQueues。我们配置了所有内容,并且一切正常……但是问题是,如果第三方消息队列不可用,则在启用耳朵(执行消息侦听器)的过程中会收到异常。在我们的Jenkins集成系统上,这是一种愚蠢的行为,因为这些第三方提供者消息队列不可用。

如果第三方MessageQueues不可用,这是在启用过程中收到的构建错误:

[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.1.Final:execute-commands (execute-action-scripts) on project centec-finance-manager-install: Execution execute-action-scripts of goal org.wildfly.plugins:wildfly-maven-plugin:1.2.1.Final:execute-commands failed: Failed to process file 'C:\Users\mleitner\git\FinanceManager\centec-finance-manager-install\target\cli\enable.cli': Command 'end-if' is invalid. {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"centec-finance-interface-arz-ear-app.ear\".\"centec-finance-interface-arz-ear-core.jar\".component.SKOSOmdb.START" => "java.lang.RuntimeException: com.ibm.mq.connector.DetailedResourceAdapterInternalException: 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.
[ERROR] Caused by: java.lang.RuntimeException: com.ibm.mq.connector.DetailedResourceAdapterInternalException: 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.
[ERROR] Caused by: com.ibm.mq.connector.DetailedResourceAdapterInternalException: 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.
[ERROR] Caused by: com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'Q0GT' with connection mode 'Client' and host name 'xxx.xxx.xxx.xxx(17314)'.
[ERROR] Please check if the supplied username and password are correct on the QueueManager to which you are connecting.
[ERROR] Caused by: com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')."}}

不选择在实施MessageQueue侦听的位置安装耳朵,因为在持续集成期间我们还需要测试其他逻辑。

那么我们还有什么其他选择?安装和配置一些虚拟队列以进行开发将是一个可能的解决方案……但是我宁愿使用一种配置来强制Wildfly忽略第三方提供程序的MessageQueue不可用。有什么想法吗?

0 个答案:

没有答案