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 » MQSeries, Oracle and XA transactions

Post new topic  Reply to topic
 MQSeries, Oracle and XA transactions « View previous topic :: View next topic » 
Author Message
bartek_n
PostPosted: Thu Sep 29, 2005 3:55 am    Post subject: MQSeries, Oracle and XA transactions Reply with quote

Novice

Joined: 28 Sep 2005
Posts: 10

I've just take a look into following documentation: http://www.hofsvang.no/books/IBM/WebSphereMQ.5.2/html/en_US/amqzag/amqzag2v.htm#HDREGUOW
and I am confused if my current aproach is wrong or not...

The scenario is, that I have this java appliaction (running unfortunatelly on ATG Dynamo app server) which uses MQSeries (via JMS) and Oracle database (XADataSource using the racle.jdbc.xa.client.OracleXADataSource, not this FakeXADataSource crap!). Access to both is enclosed within XA transactions. What I believe is happening is, that we get TransactionManager instance from Dynamo (however, from the instance of repository working on the top of Oracle), than I open connection with MQSeries (enlisting it explicitly as a resource) and also do some stuff with database (I assume that enlisting is done by TM behind the scene). Then I commit/rollback the global transaction and expect that all is happy and consistent. But somethimes strange things happen (like long-lasting uncommited msgs in the queue, lock held by in-doubt transactions in Oracle)...

So, is this approach correct?
In docs in the link I put above there is info about how to get the queue manager know about the Oracle resource manager. What is the purpose of it and when it has to be used? In case the queue manager acts as transaction manager? There is a strange 'switch file' used, so it would suggest that the MQSeries and Oracle have to run on same machine?

Bartek
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Sep 29, 2005 6:04 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Isn't this the same thread as:
http://www.mqseries.net/phpBB2/viewtopic.php?t=24585&highlight=atg
???
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
bartek_n
PostPosted: Thu Sep 29, 2005 6:15 am    Post subject: Reply with quote

Novice

Joined: 28 Sep 2005
Posts: 10

Quote:
Isn't this the same thread as:
http://www.mqseries.net/phpBB2/viewtopic.php?t=24585&highlight=atg
???


You've got me
Basically it is, but here I wanted to ask if the whole concept is right, without getting into details of problems - just to make sure I haven't done any stupid basic mistake in understanding how it should be used.
And this is Java-releated section, so I though maybe also other people are visiting this branch.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 29, 2005 12:36 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The concept is sound. It is just that you are using the ATG transaction manager and not a J2EE transaction manager for a J2EE pattern.

Welcome to surprises and pain. Have you tried yet using the JTA transaction manager supplied by ATG in your scenario ?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQSeries, Oracle and XA 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.