IBM WAS 9、MDB 部署使整个应用程序失败

IBM WAS 9, MDB deployment fail the entire application

我们有一个 IBM WebSphere AS 9.0.0.7,当我们想要部署一个包含 MDB 的应用程序时 - 它侦听远程 WebShpere MQ 服务器 - 当 MQ 服务器关闭时,WAS 报告错误

Caused by: com.ibm.mq.connector.DetailedResourceAdapterInternalException: MQJCA1011: Failed to allocate a JMS connection., error code: MQJCA1011 An internalerror caused an attempt to allocate a connection to fail. See the linked exception for details of the failure.

并停止部署,即应用程序不启动。这是一个大问题,因为它是其他操作的关键枢纽。我们想要强制 WAS 启动应用程序并稍后重试 JMS 连接。可能吗?

您可以尝试将自定义 属性 WAS_EndpointInitialState 属性 设置为 INACTIVE,请参阅 here and here, and also may want to look through here

我们在这里找到了解决方案:Configuring properties for the IBM MQ resource adapter

技巧是设置 startupRetryCount 和 startupRetryInterval。当 MQ 服务器不可用时,应用程序启动,但报告为 "Partial start"。应用程序的所有其他部分似乎 运行 都很好。