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 » IBM MQ Java / JMS » Distributed Transactions MQSeries/Oracle/Java

Post new topic  Reply to topic
 Distributed Transactions MQSeries/Oracle/Java « View previous topic :: View next topic » 
Author Message
sonim
PostPosted: Fri Jan 04, 2002 4:09 am    Post subject: Reply with quote

Newbie

Joined: 02 Jan 2002
Posts: 1

Hello,

Does anybody know of a place to get hold of a decent example to allow MQ to coordinate units of work with external resource managers - for instance Oracle.

I am writing a java application for MQ that will get a message from a queue, insert the contents of the queue into an external Oracle Database and then close the transaction. However it is not very clear from the documentation what constitutes a unit of work in a global transaction and I have been unsuccessful with getting MQ to do the commit and rollback successfully. Further more I get the error code 2372 MQ_PARTICIPANT_NOT_DEFINED which is not documented anywhere ( also noticed this in a separate topic. Here is the logic I use in my program ( with equiv MQ API calls in brackets).

1. Connect to an MQ queue manager - (MQCONN)
2. Start Transaction - (MQBEGIN)
3. Open queue - (MQOPEN)
4. Obtain connection to OracleXA (USE JDBC)
5. Get message and process (MGET)
6. Build Prepared statement and execute (SQL)
7. Call commit or rollback (MQCMIT/MQBACK)
8. Disconnect from the queue

I use 2 separate JDBC connections in point 4 and point 6.

All help much appreciated
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 » IBM MQ Java / JMS » Distributed Transactions MQSeries/Oracle/Java
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.