问题
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