Author |
Message
|
matth |
Posted: Tue Oct 01, 2019 2:55 am Post subject: MQExplorer and Commit |
|
|
Apprentice
Joined: 13 Feb 2007 Posts: 44 Location: Brazil
|
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?
PS: I´m not MQ developer.
Regard´s |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 01, 2019 3:14 am Post subject: Re: MQExplorer and Commit |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
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?
PS: I´m not MQ developer.
Regard´s |
You did not put it under syncpoint or you could not see its content!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Oct 01, 2019 4:16 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
hughson |
Posted: Tue Oct 01, 2019 7:40 pm Post subject: Re: MQExplorer and Commit |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
HubertKleinmanns |
Posted: Tue Oct 01, 2019 11:47 pm Post subject: Re: MQExplorer and Commit |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 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 |
|
 |
bruce2359 |
Posted: Wed Oct 02, 2019 2:25 am Post subject: Re: MQExplorer and Commit |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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. _________________ 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 |
|
 |
HubertKleinmanns |
Posted: Wed Oct 02, 2019 2:54 am Post subject: Re: MQExplorer and Commit |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 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 |
|
 |
bruce2359 |
Posted: Wed Oct 02, 2019 3:07 am Post subject: Re: MQExplorer and Commit |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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, what’s not clear? Amqsput and MQExplorer equivalent don’t do UofW’s. Other apps may do UofW processing. It’s 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. _________________ 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 |
|
 |
HubertKleinmanns |
Posted: Wed Oct 02, 2019 3:29 am Post subject: Re: MQExplorer and Commit |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
bruce2359 wrote: |
Other apps may do UofW processing. It’s 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 |
|
 |
hughson |
Posted: Wed Oct 02, 2019 12:47 pm Post subject: Re: MQExplorer and Commit |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 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 |
|
 |
|