是否有通过Solace进行XA事务的JMS实现的示例 [英] Is there any example of JMS implementaion with XA transactions with Solace

查看:123
本文介绍了是否有通过Solace进行XA事务的JMS实现的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到有用的用Solace进行XA事务的JMS实现的示例

I would like to find usefull example of JMS implementaion with XA transactions with Solace

推荐答案

Solace JMS API在示例目录中包含一个XATransactions.java示例,该示例显示了如何在应用程序中使用XA事务.

The Solace JMS API contains a XATransactions.java example in the samples directory that shows how you can make use of XA transactions in your application.

请注意,示例代码通过调用相关的XAResource方法(例如XAResource.commit())来手动管理XA事务. XA事务通常在Java EE应用程序服务器中使用,该服务器包含一个事务管理器来管理XA事务的生命周期. XA交易.

Note that the sample code is manually managing the XA transaction by calling the relevant XAResource methods such as XAResource.commit(). XA transactions are usually used within Java EE application servers that contain a transaction manager to manage the lifecycle of XA transactions.

这篇关于是否有通过Solace进行XA事务的JMS实现的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆