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 » MQ GET - Destructive read and rollback

Post new topic  Reply to topic
 MQ GET - Destructive read and rollback « View previous topic :: View next topic » 
Author Message
team
PostPosted: Thu Jun 21, 2007 1:25 am    Post subject: MQ GET - Destructive read and rollback Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Jun 21, 2007 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message
team
PostPosted: Thu Jun 21, 2007 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Jun 21, 2007 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
team
PostPosted: Thu Jun 21, 2007 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Jun 21, 2007 6:48 am    Post subject: Reply with quote

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
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 Java / JMS » MQ GET - Destructive read and rollback
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.