File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1868

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: 163

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: 8927

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.


Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
I agree. Here's the link:
subject: Is this a distributed transaction
It's not a secret anymore!