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 API Support » Unit of Work

Post new topic  Reply to topic
 Unit of Work « View previous topic :: View next topic » 
Author Message
wellsfargo
PostPosted: Fri May 27, 2005 7:15 am    Post subject: Unit of Work Reply with quote

Newbie

Joined: 19 Jan 2005
Posts: 4

If I do a put() and then issue a successful commit() with putOptions set to:


1) MQPMO_NONE - what is the UofW?

2) MQPMO_SYNCPOINT - what is the UofW?

3) MQPMO_NO_SYNCPOINT - what is the UofW?



TIA
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Fri May 27, 2005 8:51 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
successful commit() with putOptions set to

Commit doesn't take putOptions as a parameter. It acts on previous GETs of PUTs according to their options.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri May 27, 2005 8:56 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

The answers to your syncpoint/UOW questions can be found here:

http://publibfp.boulder.ibm.com/epubs/html/amqzag03/amqzag03tfrm.htm

It will explain it far better than I could
Back to top
View user's profile Send private message
wellsfargo
PostPosted: Fri May 27, 2005 10:08 am    Post subject: Re:Unit of Work Reply with quote

Newbie

Joined: 19 Jan 2005
Posts: 4

Obviously a commit() doesn't take a put option but sorry for the confusion.

The question remains:

If I establish a transaction with many puts() and then issue a successful commit() can you define the following if the put option is?


1) MQPMO_NONE - what is the UofW?

2) MQPMO_SYNCPOINT - what is the UofW?

3) MQPMO_NO_SYNCPOINT - what is the UofW?
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Fri May 27, 2005 11:35 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
what is the UofW

From the 1st GET/PUT that uses a Synpoint option through to an action that causes a Commit. Excluding any GET/PUT that has an option to "opt out" of the UoW.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri May 27, 2005 12:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You might want to try playing with any of the programs that have 'sync' in their name at:

http://www.developer.ibm.com/isv/tech/sampmq.html

They allow you to put messages in and out of a UOW. You can then run a program to get messages to see what gets or doesn't get committed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
zpat
PostPosted: Fri May 27, 2005 1:10 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The default option is SYNCPOINT on z/OS and NO SYNCPOINT on other platforms - I always recommend coding the option wanted rather than allowing it to default, for this reason.
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 API Support » Unit of Work
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.