What is the difference between distributed transactions and Flat transactions in EJB?

Showing Answers 1 - 14 of 14 Answers

venky

  • Sep 12th, 2005
 

If your EJB container talks with Multiple databases(EIS) in single trasaction that is been called as distributed transacation.

  Was this answer useful?  Yes

Mannu Kumar Pandey

  • Nov 3rd, 2005
 

Distributed transaction are executed in a distributed manner (may on more than one machine) while flat are not having this feature.

  Was this answer useful?  Yes

sudarshan

  • Apr 5th, 2013
 

A nested transaction is a transaction that is logically decomposed into the hierarchy of sub transaction.

A distributed transaction that is logically flat, indivisible transaction that operates on distributed data

  Was this answer useful?  Yes

In a flat transaction, each transaction is decoupled from and independent of other transactions in the system. You cannot start another transaction in the same thread until the current transaction ends.

While distributed transactions that span multiple resources (such as databases) and supports the two-phase commit protocol for CMP EJBs.

Or may be we can say, distributed is type of Flat transaction where transaction is distributed among different resources.

  Was this answer useful?  Yes

Ahmed EL-Ghonimy

  • Mar 17th, 2016
 

This question is tricky and wrong because comparing a Transaction Model with a transaction type is not correct. Flat transactions could be local (standard) or global (distributed). If it were straight forward, it would compare between flat and nested transactions.

  Was this answer useful?  Yes

imran

  • Jan 3rd, 2017
 

Flat transaction send out requests to different servers and each request is completed before client goes to the next one. Nested transaction allows sub-transactions at the same level to execute concurrently

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions