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 IndexIBM MQ API SupportMQExplorer and Commit

Post new topicReply to topic
MQExplorer and Commit View previous topic :: View next topic
Author Message
matth
PostPosted: Tue Oct 01, 2019 2:55 am Post subject: MQExplorer and Commit Reply with quote

Apprentice

Joined: 13 Feb 2007
Posts: 37
Location: Brazil

Simple Question:

If I post one message in queue, but I didnt close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?

PS: Im not MQ developer.

Regards
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 01, 2019 3:14 am Post subject: Re: MQExplorer and Commit Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20109
Location: LI,NY

matth wrote:
Simple Question:

If I post one message in queue, but I didnt close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?

PS: Im not MQ developer.

Regards

You did not put it under syncpoint or you could not see its content!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Tue Oct 01, 2019 4:16 pm Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2017
Location: Melbourne, Australia

Committed messages are included in current depth count, and you can get them as a browse or destructive operation.

Uncommitted messages are also included in current depth, but they are invisible to any app that may try to get them. Therefore you may see current depth greater than zero, but when an app tries to get any message, it will fail with 'no message available'.

Displaying the queue status will show how many messages are uncommitted: DISPLAY QSTATUS(my.queue) TYPE(QUEUE) ALL
_________________
Glenn
Back to top
View user's profile Send private message
hughson
PostPosted: Tue Oct 01, 2019 7:40 pm Post subject: Re: MQExplorer and Commit Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
Location: Bay of Plenty, New Zealand

matth wrote:
Simple Question:

If I post one message in queue, but I didn't close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?


MQ Explorer's Test Put feature does not use a transaction so the message you put is immediately available and does not need to be committed for you to be able to see it.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
HubertKleinmanns
PostPosted: Tue Oct 01, 2019 11:47 pm Post subject: Re: MQExplorer and Commit Reply with quote

Yatiri

Joined: 24 Feb 2004
Posts: 696
Location: Germany

hughson wrote:
matth wrote:
Simple Question:

If I post one message in queue, but I didn't close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?


MQ Explorer's Test Put feature does not use a transaction so the message you put is immediately available and does not need to be committed for you to be able to see it.

Cheers,
Morag


Morag, to me it's not clear, if matth posts messages with the MQ Explorer or some other tool and just views the queue with the MQ Explorer.

matth, could your clarify this?
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed Oct 02, 2019 2:25 am Post subject: Re: MQExplorer and Commit Reply with quote

Poobah

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

HubertKleinmanns wrote:
hughson wrote:
matth wrote:
Simple Question:

If I post one message in queue, but I didn't close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?


MQ Explorer's Test Put feature does not use a transaction so the message you put is immediately available and does not need to be committed for you to be able to see it.

Cheers,
Morag


Morag, to me it's not clear, if matth posts messages with the MQ Explorer or some other tool and just views the queue with the MQ Explorer.

matth, could your clarify this?

What's not clear?

The MQExplorer uses the equivalent of amqsput to MQPUT test messages to a queue. Amqsput sample source code is provided, and contains no transactional code - no MQCMIT or MQBACK calls. Therefore messages put to a queue by amqsput and MQExplorer are immediately visible to any consuming application.
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Wed Oct 02, 2019 2:54 am Post subject: Re: MQExplorer and Commit Reply with quote

Yatiri

Joined: 24 Feb 2004
Posts: 696
Location: Germany

bruce2359 wrote:
What's not clear?


To me it's not clear, if matth uses the MQ Explorer, to put messages to the queue or any other - maybe self-written - program.
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed Oct 02, 2019 3:07 am Post subject: Re: MQExplorer and Commit Reply with quote

Poobah

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

HubertKleinmanns wrote:
bruce2359 wrote:
What's not clear?


To me it's not clear, if matth uses the MQ Explorer, to put messages to the queue or any other - maybe self-written - program.

Precisely, whats not clear? Amqsput and MQExplorer equivalent dont do UofWs. Other apps may do UofW processing. Its a programming choice.

MQPMO_SYNCPOINT at MQOUT time would cause this message to be part of a UofW. Conversely, MQPMO_NO_SYNCPOINT would cause this message to be put outside of a UofW.
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Wed Oct 02, 2019 3:29 am Post subject: Re: MQExplorer and Commit Reply with quote

Yatiri

Joined: 24 Feb 2004
Posts: 696
Location: Germany

bruce2359 wrote:
Other apps may do UofW processing. Its a programming choice.


That's my question: Are the messages put with MQ Explorer, amqsput or something self-written program - which does UofW processing?

It's clear to me, that matth looks at the queue using the MQ Explorer ("MQExplorer shows it ...").

But it's not clear to me, which tool matth used for writing the messages ("I post one message in queue ...").

It's clear to me, that MQ Explorer and amqsput aren't transactional.
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
hughson
PostPosted: Wed Oct 02, 2019 12:47 pm Post subject: Re: MQExplorer and Commit Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
Location: Bay of Plenty, New Zealand

HubertKleinmanns wrote:
hughson wrote:
matth wrote:
Simple Question:

If I post one message in queue, but I didn't close or commit connection,
MQExplorer shows it in Current Queue Depth/Browse Messages?


MQ Explorer's Test Put feature does not use a transaction so the message you put is immediately available and does not need to be committed for you to be able to see it.

Cheers,
Morag


Morag, to me it's not clear, if matth posts messages with the MQ Explorer or some other tool and just views the queue with the MQ Explorer.

matth, could your clarify this?


Hubert - you are correct, it does not clearly say that he used MQ Explorer to do the put - I have made an assumption that I should not have made. We do indeed need @matth to clarify.
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportMQExplorer and Commit
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.