ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Is this the correct approach to Transactions?

Post new topic  Reply to topic
 Is this the correct approach to Transactions? « View previous topic :: View next topic » 
Author Message
Scooter
PostPosted: Thu Aug 03, 2006 10:01 am    Post subject: Is this the correct approach to Transactions? Reply with quote

Apprentice

Joined: 01 May 2003
Posts: 35
Location: Dallas, Tx

I have read several manuals and many posts about Transactions and XA. I'm looking to implement a process that requires the use of transactions and wanted to verify my approach to the problem with more experienced developers.

Scenario:
We have a local queue that has messages and we need to pull each message from the queue and transform the data that is contained in the message and then place the message on a remote queue to be delivered to another remote server. Both the local and remote queue will be located on the same server and Qmgr. The program will be written in JAVA and will be running on the server (AIX) and will be in binding mode. We are using MQ 5.3 CSD11. This process must be XA Compliant.

Approach:
Use get and put calls in a single UOW with Syncpoint to control the messages. MQCMT and MQROLLBACK will be used to control the success of the process.

Is this the correct approach to this scenario or I'm I missing something with the way UOW and syncpoint work?

Thanks for any input you can provide.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 03, 2006 10:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't need XA to coordinate transactions between two queues.

Just between MQ and something else, like a database.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Scooter
PostPosted: Thu Aug 03, 2006 12:58 pm    Post subject: Reply with quote

Apprentice

Joined: 01 May 2003
Posts: 35
Location: Dallas, Tx

Ok, but would I still use UOW and Syncpoint to get guaranteed one-time delivery to the remote queue? I can allow duplicate messages put in the remote queue and can't let a message be lost.
Back to top
View user's profile Send private message
Scooter
PostPosted: Thu Aug 03, 2006 1:00 pm    Post subject: Reply with quote

Apprentice

Joined: 01 May 2003
Posts: 35
Location: Dallas, Tx

That should be "I can't allow duplicate messages put in the remote queue and can't let a message be lost."

Sorry
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 03, 2006 1:19 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Scooter
PostPosted: Thu Aug 03, 2006 1:23 pm    Post subject: Reply with quote

Apprentice

Joined: 01 May 2003
Posts: 35
Location: Dallas, Tx

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Is this the correct approach to Transactions?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.