Hi,
I am new to JTA. I was going through JTA examples and I could see 2 ways to use JTA in my application client code for distributed transactions.
1. By getting UserTransaction from EJB container.
and
2. By retrieving XAResource.
I am not sure when to use which code.
Is it that in case of EJBs I need to use first approach and for rest I should use second one.
Thanks.
I am new to JTA. I was going through JTA examples and I could see 2 ways to use JTA in my application client code for distributed transactions.
1. By getting UserTransaction from EJB container.
and
2. By retrieving XAResource.
I am not sure when to use which code.
Is it that in case of EJBs I need to use first approach and for rest I should use second one.
Thanks.