Author |
Message
|
team |
Posted: Thu Jun 21, 2007 1:25 am Post subject: MQ GET - Destructive read and rollback |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
I do an MQGet operation and following that the calling program fails. How can i rollback the destructive read that I have done. Please can someone provide the best option to do this.
How does one rollback such get operations, what options need to specified while openeing the queue. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 21, 2007 1:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
This is what the Syncpoint options are for - to allow you to commit() and rollback(). _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
team |
Posted: Thu Jun 21, 2007 1:59 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Hi jeff...
I am reading a bit on syncpoint, however am i right to understand that it cannot be used with the Browse option?
Am getting an error thrwo with the followign options.
int openOptions = MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_BROWSE | MQC.MQOO_INPUT_AS_Q_DEF;
getOptions.options = MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_WAIT |MQC.MQGMO_SYNCPOINT;
Please could you help with the suitable options.....
THanks Jeff. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 21, 2007 2:03 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
A browse is not a destructive get. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
team |
Posted: Thu Jun 21, 2007 6:18 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Hey...thanks very much....i was doing something wrong... it worked well with
int openOptions = MQC.MQOO_INPUT_EXCLUSIVE + MQC.MQOO_FAIL_IF_QUIESCING;
&
getOptions.options = MQC.MQGMO_WAIT + MQC.MQGMO_CONVERT |MQC.MQGMO_SYNCPOINT;
Thank You!! |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 21, 2007 6:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You probably don't want to INPUT_EXCLUSIVE, unless you have a very good reason. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|