Author |
Message
|
wellsfargo |
Posted: Fri May 27, 2005 7:15 am Post subject: Unit of Work |
|
|
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 |
|
 |
EddieA |
Posted: Fri May 27, 2005 8:51 am Post subject: |
|
|
 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 |
|
 |
kevinf2349 |
Posted: Fri May 27, 2005 8:56 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
|
Back to top |
|
 |
wellsfargo |
Posted: Fri May 27, 2005 10:08 am Post subject: Re:Unit of Work |
|
|
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 |
|
 |
EddieA |
Posted: Fri May 27, 2005 11:35 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
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 |
|
 |
bower5932 |
Posted: Fri May 27, 2005 12:54 pm Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Fri May 27, 2005 1:10 pm Post subject: |
|
|
 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 |
|
 |
|