IBM MQ 定制属性
WebSphere® Application Server 支持使用定制属性来定义 IBM MQ 属性。此功能非常有用,这是因为它使 WebSphere Application Server 能够与 IBM MQ 的更高版本配合工作,而那些版本可能具有在 WebSphere Application Server 管理控制台中未提供的属性。
对于 WebSphere Application Server V7.0 或更高版本,您定义的定制属性将由 WebSphere Application Server 中包含的 IBM MQ 资源适配器进行验证。在早期发行版中,此校验在 WebSphere Application Server 自身中完成,然后由 IBM MQ 客户机 JAR 文件进行验证。如果您定义了对 IBM MQ 无效的属性,那么 IBM MQ 资源适配器将生成异常,WebSphere Application Server 会捕获该异常并将其记录在 Systemout.log 和 SystemErr.log 文件中。本主题末尾提供了错误消息示例。
当 WebSphere Application Server 安装版本支持的更高版本的 IBM MQ 可用时,可能会创建 WebSphere Application Server 未知的新 IBM MQ 属性。可以通过 WebSphere Application Server 将这些属性作为定制属性进行配置,以便 IBM MQ 资源适配器可以识别这些属性。还可以将 WebSphere Application Server 配置为指向外部 JMS 提供程序中的 IBM MQ 资源适配器,如对 IBM MQ 消息传递提供程序配置本机库信息中所述。
有关 IBM MQ 属性的有效值的信息,请参阅 IBM MQ 信息中心的“使用 Java™”和“系统管理”部分。
错误消息示例
资源适配器产生的异常包含错误消息,他们类似于以下示例:[09/02/06 15:40:06:377 GMT] 0000000a ContainerImpl E WSVR0501E: Error creating
component null [class com.ibm.ws.runtime.component.ApplicationServerImpl]
com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.runtime.component.binder.
ResourceBindingException: invalid configuration passed to resource binding logic.
REASON: Failed to create connection factory: Error raised constructing AdminObject,
error code: XAQCF PropertyName : XAQCF PropertyName
其中属性名是无效属性的名称。
概念主题