Can I use JTA over different EARs which are deployed to different servers?

情到浓时终转凉″ 提交于 2019-12-12 18:02:47

问题



I'm looking into JTA as I need distributed transactions (across JPA, JMS and EHCache).
I'm trying to understand whether JTA can supply an additional functionality which I'm considering.
If I have 3 different servers, each running Glassfish and each server has a different EAR (a different module of mine).
Can I have a transaction which will span across different servers and different EARs?

Thanks,
Ittai


回答1:


Can I have a transaction which will span across different servers and different EARs?

Yes. A global transaction can combine multiple resources from multiple EARs.



来源:https://stackoverflow.com/questions/3987326/can-i-use-jta-over-different-ears-which-are-deployed-to-different-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!