This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Performance and the fly likes Is this a distributed transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Is this a distributed transaction" Watch "Is this a distributed transaction" New topic

Is this a distributed transaction

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1849

I have a Messaging System like ActiveMQ which has its own Persistance for the messages. I am retreiving a message from this queue and writing in my Application servier database.

Thus there are two databases involved.

I am sure this is a distributed transaction.

But just checking if there are any issues surrounding it.

Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 162

would say no because it is no XA, so you don't have a special persistence manager that have to deal with two synchronize to synchronize different database. You are just dealing to a single database (in the point of view of the Message consumer)

Please, visit me for some cool tech post at
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 7552

Rahul Mahindrakar wrote:I am sure this is a distributed transaction.

Like Luan, I would say that's probably not the case, unless either your or ActiveMQ's database is distributed (ie, held on more than one node).

And it might still not qualify as a distributed transaction if ActiveMQ provides you with a "face" that appears undistributed, even if their underlying db actually is.


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
I agree. Here's the link:
subject: Is this a distributed transaction
Similar Threads
Distributed Tx and Transactional File Access
how to involve Java messaging in a distributed transaction
To be J2EE/EJB or not?
distributed transactions in spring
Distributed transactions