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 » WebSphere Message Broker (ACE) Support » WBIMB Coordinated message flows

Post new topic  Reply to topic
 WBIMB Coordinated message flows « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Mon Jun 28, 2004 6:16 am    Post subject: WBIMB Coordinated message flows Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Following the WMQ Infocenter, I was able to define an XA resource for the broker QMgr to enable 'Coordinated Message Flows' as per the WBIMB help.

Now I have some questions:

1. In theory, all the flows that run on that broker, can be coordinated by WMQ (if obviously all the Transaction properties in the WBIMB nodes are defined correctly and the BAR file has the 'Coordinated transaction' flag checked)?

2. Specifing the XA resource in the QMgr properties, I didn't mention any specific datasource: I have only specified the DB2 Switch file: does this mean that ANY DB, if referenced in the flows, is coordinated by WMQ?

3. How can I experiment (this is a lack of experience with XA, sorry about that) that XA is working properly? Are there any 'best practices'? In practice, I would like to simulate a failure between the prepare commit for the DB and the following prepare commit for MQ.

Thanks in advance for any hint,
Cheers,
Andrea Tedone
AMS IT Specialist
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Mon Jun 28, 2004 11:16 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Testo wrote:

1. In theory, all the flows that run on that broker, can be coordinated by WMQ (if obviously all the Transaction properties in the WBIMB nodes are defined correctly and the BAR file has the 'Coordinated transaction' flag checked)?

To coordinate transactions (UOW) MQ makes use of Syncpoint option. In this case you don't need to check Coordinated Transacion flag in the BAR file. This flag is for 2-phase commit (Globally Coordinated Transaction) only.

Testo wrote:

2. Specifing the XA resource in the QMgr properties, I didn't mention any specific datasource: I have only specified the DB2 Switch file: does this mean that ANY DB, if referenced in the flows, is coordinated by WMQ?

You need to create one resource for each DB that will participate in the global UOW. I believe you will get deploy/runtime errors if the message flow is accessing DB XYZ and a resource is not defined for it.

Testo wrote:

3. How can I experiment (this is a lack of experience with XA, sorry about that) that XA is working properly? Are there any 'best practices'? In practice, I would like to simulate a failure between the prepare commit for the DB and the following prepare commit for MQ.

I don't know about the best practice, but you can simulate MQ errors by disabling the output queue. For DB errors, you can revoke the permissions on the DB Object for a user.

I hope this helps.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Testo
PostPosted: Tue Jun 29, 2004 2:15 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thank you Kiran for your feedback.

I'm wondering about this:

kirani wrote:

You need to create one resource for each DB that will participate in the global UOW. I believe you will get deploy/runtime errors if the message flow is accessing DB XYZ and a resource is not defined for it.


When I defined the XA Resource in the WMQ Services panel for my broker Qmgr, I specified a name for my Resource, the path for the SwitchFile, the value 'MQ' for the XAOpenString and I left the default 'PROCESS' for the item ThreadOfControl. So actually I didn't specify ANY datasource... The only thing that I can think about is that the name of the XA Resource should be the same as the datasource?!

Thanks,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Tue Jun 29, 2004 1:13 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Andrea,

Well Resource Name is just a string. It must be unique within the queue manager (qm.ini file). It need not match your DB name. XAOpenString is what identifies the DB name. An example of value for XAOpenString could be DB=MyDBName,UID=myuser,PWD=mypwd,TPM=MQ.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Testo
PostPosted: Tue Jun 29, 2004 2:13 pm    Post subject: Thanks Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thanks Kiran,

helpful as usual.

Cheers,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WBIMB Coordinated message flows
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.