Can I use JTA over different EARs which are deployed to different servers?
-
10-10-2019 - |
Question
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
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow