Websphere JTA - 最后的资源配置

Websphere JTA - Last resource Configuration

在 Websphere 应用程序中,我们需要使用 JMS + Gemfire 进行 JTA 事务处理。根据产品推荐,我们正在尝试将 Gemfire 配置为最后的资源。文档中没有足够的support/example

http://gemfire82.docs.pivotal.io/docs-gemfire/latest/developing/transactions/JTA_transactions_with_GemFire.html#concept_csy_vfb_wk

JTA - Websphere UOW 资源 - JMS、Gemfire (8.2.1)

谁能发布一个示例 websphere-ra.xml?

WebSphere Application Server 没有特定于 websphere 的资源部署描述符。可以为服务器或应用程序配置最后的代理优化。要为服务器配置它,在完整配置文件中,您可以在事务服务设置中启用 'Accept Heuristic Hazard'。例子: https://www.ibm.com/support/knowledgecenter/en/SSAW57_7.0.0/com.ibm.websphere.nd.doc/info/ae/ae/udat_contranserv.html

如果您选择应用程序级别,则需要对应用程序的部署描述符使用特定于 websphere 的扩展。该设置称为 'Last participant support'。例子: https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/lao/tasks/tla_cfap2.html

如果配置正确,服务器将允许单个单阶段资源加入全局事务,并将其视为最后一个代理。如果征用了多个单阶段资源,您将得到一个例外。在这种特定情况下,您需要确保 JMS 资源支持 XA,以便它们不会尝试成为最后一个代理。