Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is a distributed two-phase commit (2PC) required when combining JMS and Database operations within a Message Driver Bean (MDB)?

0
Posted

Is a distributed two-phase commit (2PC) required when combining JMS and Database operations within a Message Driver Bean (MDB)?

0

No, as long as the business logic inside the MDB uses the same Data Source and username/password, all DS.getConnection calls return the same physical connection. Therefore, at commit time only one resource is enlisted with JTA so one-phase commit is performed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123