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 » General Discussion » MQBegin and MQCmit

Post new topic  Reply to topic
 MQBegin and MQCmit « View previous topic :: View next topic » 
Author Message
BarryB
PostPosted: Wed Jul 14, 2004 10:34 am    Post subject: MQBegin and MQCmit Reply with quote

Acolyte

Joined: 01 Jul 2004
Posts: 53
Location: Vernon Hills, Il

When you use an MQCmit, do you have to specify an MQBegin with it, or can you simply just use an MQCmit by itself? We have a VB application which is using Logical grouping, and an MQCmit is issued at the end of each batch... however, there is no MQBegin. Is the begin implied?

Thanks,
b
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jul 14, 2004 11:10 am    Post subject: Reply with quote

Jedi Knight

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

Wheing using MQCMIT call without MQBEGIN the queue manager will commit local unit of work. If you use MQBEGIN before the MQCMIT in your code then the queue manager understands the Global Unit of Work needs to be commited. You must use MQBEGIN when start a Global Unit of Work (2-phase commit).
_________________
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
EddieA
PostPosted: Wed Jul 14, 2004 12:47 pm    Post subject: Reply with quote

Jedi

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

Unless you are using an Global UOW, MQBEGIN does nothing. In fact, it will give you a Warning return (2121).

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQBegin and MQCmit
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.