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 IBM MQ Support » When n why do we need to call MQCMIT?

Post new topic  Reply to topic Goto page 1, 2  Next
 When n why do we need to call MQCMIT? « View previous topic :: View next topic » 
Author Message
vandemon
PostPosted: Mon Jun 21, 2010 1:15 am    Post subject: When n why do we need to call MQCMIT? Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

Following is the flow of my code:
MQCONN
MQOPEN
MQPUT
MQCLOSE
MQDISC

My question:
1) Do i need to put in MQCMIT in my code?
2) When is the time that i need to put in MQCMIT?
3) Will my msg gone if i did not put in MQCMIT?
4) What is MQCMIT for???
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jun 21, 2010 1:41 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MQCMIT is used when you code MQPMO_SYNCPOINT.

If you don't need, don't code it.
Back to top
View user's profile Send private message
vandemon
PostPosted: Mon Jun 21, 2010 4:52 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

So, izit means that:
MQCONN (success)
MQOPEN (success)
MQPUT (in thus phase, i tried to put for a few times, then the application ended due the uncommon error)

My question : Will the data that I put using MQPUT lost?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 21, 2010 5:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vandemon wrote:
My question : Will the data that I put using MQPUT lost?


Probably. It depends on if you're using MQPMO_SYNCPOINT or not as my associate said & as you've not mentioned.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vandemon
PostPosted: Mon Jun 21, 2010 5:10 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

Ok thx... By default synpoint is not being used rite???[/quote]
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 21, 2010 5:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vandemon wrote:
Ok thx... By default synpoint is not being used rite???


How should I know? What are your site defaults?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vandemon
PostPosted: Mon Jun 21, 2010 5:19 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

Ok... Checked already... Mine is with MQPMO_NONE... Thanks bro...
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jul 07, 2010 12:01 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

There are two default options for syncpointing, it is no syncpoint on distributed platforms and syncpoint on z/OS, if nothing is specified.

There are some interesting options like Syncpoint if persistent, which can be specified. See the App Prog Reg, App Prog Guide (always a good read).
Back to top
View user's profile Send private message
fatherjack
PostPosted: Wed Jul 07, 2010 2:56 pm    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

zpat wrote:
See the App Prog Reg, App Prog Guide (always a good read).


How sad ...
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Jul 07, 2010 4:11 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

Quote:
How sad ...

What's sad?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Wed Jul 07, 2010 11:47 pm    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

bruce2359 wrote:
Quote:
How sad ...

What's sad?


Suggesting the APR and APG are "always a good read".
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Jul 08, 2010 5:00 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

I suppose that referring to a map before taking off for holiday is sad, too. Or that reading the schematic before adding electrics to my car is sad, as well.

I'll agree that the cast of characters and plot are somewhat thin...
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Jul 08, 2010 5:15 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Bruce meant they are a good read when you need the info contained within. Fatherjack read it as you saying they are a good read any ol' time, like on a beach during vacation.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Jul 08, 2010 5:18 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

What?! You don't take tech manuals on vacation? I'm shocked...
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Thu Jul 08, 2010 5:22 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

bruce2359 wrote:
What?! You don't take tech manuals on vacation? I'm shocked...


Only my Red Hat Linux Bible

Amen.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » When n why do we need to call 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.