IBM MQManager作为带有Spring-jms和Spring-tx的XA事务管理器 [英] IBM MQManager as XA Transaction Manager with Spring-jms and Spring-tx

查看:141
本文介绍了IBM MQManager作为带有Spring-jms和Spring-tx的XA事务管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用具有Spring-JMS和Spring事务支持的IBM MQ管理器作为XA事务管理器. IBM MQ Manager在spring-jta支持方面能否很好地发挥作用?

We are trying to use IBM MQ manager as XA Transaction manager with spring-jms and spring transaction support. Does IBM MQ manager play well with spring-jta support?

推荐答案

您不能将WMQ JMS客户端(spring-jms使用的客户端)与MQ QueueManager用作XA事务管理器一起使用.目的是通过JTA实现的事务管理器(即Java EE应用程序服务器)控制JMS应用程序.

You can't use the WMQ JMS client (which is what spring-jms would use) with the MQ QueueManager acting as the XA transaction manager. The intention is that a JMS application would be controlled via a JTA implemented transaction manager (i.e. a Java EE application server).

但是,您可以使用WMQ Java客户端(即非JMS),并让MQ QueueManager充当XA事务管理器(非JTA).

You can however use the WMQ Java client (i.e. non JMS) and have the MQ QueueManager act as the XA transaction manager (non JTA).

正如@COLINHY所说,您可以反过来使用它. Spring事务管理器将是使用JTA的协调器,然后可以使用spring-jms引入WMQ JMS客户端和MQ队列管理器作为事务资源.

As @COLINHY said you can use it the other way around. The Spring transaction manager will be the coordinator using JTA and the spring-jms can then be used to bring in the WMQ JMS client and MQ Queue Manager as a transactional resource.

这篇关于IBM MQManager作为带有Spring-jms和Spring-tx的XA事务管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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