This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Java » Performance
Bookmark "Is this a distributed transaction" Watch "Is this a distributed transaction" New topic
Author

Is this a distributed transaction

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Hi

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 www.ourdailycodes.com
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7892
    
  21

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.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
 
GeeCON Prague 2014
 
subject: Is this a distributed transaction