Re: can two processes both get the same message
Sorry, I misunderstood your question. You may want to refer to the Programming Reference book (under MQGMO_WAIT option...starting on page 100)... Ruzi -Original Message-From: Ronald Weinger [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 05, 2003 10:28 AMTo: [EMAIL PROTECTED]Subject: Re: can two processes both get the same messageThat explains triggering, not how MQ will 'wake up' only one of the transactions that issues a GET WAIT . "Razi, Ruzi" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 10:12 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same message1- The application queue has to be triggered (on FIRST, DEPTH or EVERY). 2- The application queue has to specify an "initiation" queue and "process". 3- The "initiation" queue mentioned in point #2 has to be created (as a non-triggered queue) .When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on this initiation queue 4- The "Process" mentioned in point #2 has to be created. This process specifies the program to be started 5- Trigger monitor has to be started to service the initiation queue. When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on the initiation queue. Then, the trigger monitor will retrieve this trigger message and start the program indicated in the Process definition (point #4). For more info on triggering, please refer to the Application Programming Guide. Best regards, Ruzi -Original Message-From: Ronald Weinger [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 05, 2003 9:28 AMTo: [EMAIL PROTECTED]Subject: Re: can two processes both get the same messageDoes anyone know how WMQ will 'wake up' the application? "Thomas Dunlap" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 06:00 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same messageRandy,Not to worry. When multiple applications are using MQGET withMQGMO_WAIT, only one will wake up as a messagearrives into the queue. The other will wait for the next message. Asingle message will not wake up multiple applications.Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET withMQGMO_SYNCPOINT. Thelatter option also ensures that no 2 applications will retrieve the samemessage, plus allows you to roll back (MQBACK)should a problem arise.Randy J Clark wrote:>I want to have mulitple instances of the same long running process>executing.>>I want them NOT to retrieve the same messages - period.>>For instance if only messages arrives on the queue and I have two processes>reading it both waiting for a message will they both retrieve the same>message or will one get the message and the other gets nothing.>>What open options do I use>MQOO_INPUT_SHARED>>The just GET with the GMO-SYNCPOINT>>Instructions for managing your mailing list subscription are provided in>the Listserv General Users Guide available at http://www.lsoft.com>Archive: http://vm.akh-wien.ac.at/MQSeries.archive>>>--Regards,Thomas Dunlap Chief Technology Officer [EMAIL PROTECTED]Themis, Inc. http://www.themisinc.com 1 (800) 756-3000Instructions for managing your mailing list subscription are provided inthe Listserv General Users Guide available at http://www.lsoft.comArchive: http://vm.akh-wien.ac.at/MQSeries.archive The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier ilectronique est une communication privie ` l
Re: can two processes both get the same message
Ron, I believe it depends on the OS, or subsystem. For example, CICS uses CICS's wait/post, and OS/390 uses its wait/post. As for the other OS's, I pretty sure they have similar mechanisms. Ronald Weinger <[EMAIL PROTECTED] To: [EMAIL PROTECTED] E.COM> cc: Sent by: Subject: Re: can two processes both get the same message MQSeries List <[EMAIL PROTECTED] en.AC.AT> 11/05/2003 10:27 AM Please respond to MQSeries List That explains triggering, not how MQ will 'wake up' only one of the transactions that issues a GET WAIT . "Razi, Ruzi" <[EMAIL PROTECTED]>To: Sent by: "MQSeries List" [EMAIL PROTECTED] <[EMAIL PROTECTED]>cc: Subject: Re: can two processes both get the same message 11/05/2003 10:12 AM Please respond to "MQSeries List" 1- The application queue has to be triggered (on FIRST, DEPTH or EVERY). 2- The application queue has to specify an "initiation" queue and "process". 3- The "initiation" queue mentioned in point #2 has to be created (as a non-triggered queue) .When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on this initiation queue 4- The "Process" mentioned in point #2 has to be created. This process specifies the program to be started 5- Trigger monitor has to be started to service the initiation queue. When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on the initiation queue. Then, the trigger monitor will retrieve this trigger message and start the program indicated in the Process definition (point #4). For more info on triggering, please refer to the Application Programming Guide. Best regards, Ruzi -Original Message- From: Ronald Weinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: Re: can two processes both get the same message Does anyone know how WMQ will 'wake up' the application? "Thomas Dunlap" <[EMAIL PROTECTED]> To: Sent by: "MQSeries List" [EMAIL PROTECTED] <[EMAIL PROTECTED]> cc: Subject:Re: can two processes both get the same message 11/05/2003 06:00 AM Please respond to "MQSeries List" Randy, Not to worry. When multiple applications are using MQGET with MQGMO_WAIT, only one will wake up as a message arrives into the queue. The other will wait for the next message. A single message will not wake up multiple applications. Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with MQGMO_SYNCPOINT. The latter option also ensures that no 2 applications will retrieve the same message, plus allows you to roll back (MQBACK) should a problem arise. Randy J Clark wrote: >I want to have mulitple instances of the same long running process >executing. > >I want them NOT to retrieve the same messages - period. > >For instance if only messages arrives on the queue and I have two processes >reading it both waiting for a message will they both retrieve the same >message or will one get the message and the other gets nothing. > >What open options do I use >MQOO_INPUT_SHARED > >The just GET with the GMO-SYNCPOINT > >Instructions for managing your mailing list subscription are provided in >the Listserv General Users Guide available at http://www.lsoft.com >Archive: http://vm.akh-wien.ac.at/MQSeries.archive > > > -- Regards, Thomas DunlapChief Technology Officer[EMAIL PROTECTED] Themis, Inc.http://www.themisinc.com1 (800) 756-3000 Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The info
Re: can two processes both get the same message
That explains triggering, not how MQ will 'wake up' only one of the transactions that issues a GET WAIT . "Razi, Ruzi" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 10:12 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same message 1- The application queue has to be triggered (on FIRST, DEPTH or EVERY). 2- The application queue has to specify an "initiation" queue and "process". 3- The "initiation" queue mentioned in point #2 has to be created (as a non-triggered queue) .When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on this initiation queue 4- The "Process" mentioned in point #2 has to be created. This process specifies the program to be started 5- Trigger monitor has to be started to service the initiation queue. When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on the initiation queue. Then, the trigger monitor will retrieve this trigger message and start the program indicated in the Process definition (point #4). For more info on triggering, please refer to the Application Programming Guide. Best regards, Ruzi -Original Message- From: Ronald Weinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: Re: can two processes both get the same message Does anyone know how WMQ will 'wake up' the application? "Thomas Dunlap" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 06:00 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same message Randy, Not to worry. When multiple applications are using MQGET with MQGMO_WAIT, only one will wake up as a message arrives into the queue. The other will wait for the next message. A single message will not wake up multiple applications. Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with MQGMO_SYNCPOINT. The latter option also ensures that no 2 applications will retrieve the same message, plus allows you to roll back (MQBACK) should a problem arise. Randy J Clark wrote: >I want to have mulitple instances of the same long running process >executing. > >I want them NOT to retrieve the same messages - period. > >For instance if only messages arrives on the queue and I have two processes >reading it both waiting for a message will they both retrieve the same >message or will one get the message and the other gets nothing. > >What open options do I use >MQOO_INPUT_SHARED > >The just GET with the GMO-SYNCPOINT > >Instructions for managing your mailing list subscription are provided in >the Listserv General Users Guide available at http://www.lsoft.com >Archive: http://vm.akh-wien.ac.at/MQSeries.archive > > > -- Regards, Thomas Dunlap Chief Technology Officer [EMAIL PROTECTED] Themis, Inc. http://www.themisinc.com 1 (800) 756-3000 Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier ilectronique est une communication privie ` l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'jtes pas le destinataire privu, vous jtes avisi, par les prisentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que c
Re: can two processes both get the same message
1- The application queue has to be triggered (on FIRST, DEPTH or EVERY). 2- The application queue has to specify an "initiation" queue and "process". 3- The "initiation" queue mentioned in point #2 has to be created (as a non-triggered queue) .When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on this initiation queue 4- The "Process" mentioned in point #2 has to be created. This process specifies the program to be started 5- Trigger monitor has to be started to service the initiation queue. When the conditions for the generation of a trigger message are met the queue manager will put a trigger message on the initiation queue. Then, the trigger monitor will retrieve this trigger message and start the program indicated in the Process definition (point #4). For more info on triggering, please refer to the Application Programming Guide. Best regards, Ruzi -Original Message-From: Ronald Weinger [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 05, 2003 9:28 AMTo: [EMAIL PROTECTED]Subject: Re: can two processes both get the same messageDoes anyone know how WMQ will 'wake up' the application? "Thomas Dunlap" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 06:00 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same messageRandy,Not to worry. When multiple applications are using MQGET withMQGMO_WAIT, only one will wake up as a messagearrives into the queue. The other will wait for the next message. Asingle message will not wake up multiple applications.Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET withMQGMO_SYNCPOINT. Thelatter option also ensures that no 2 applications will retrieve the samemessage, plus allows you to roll back (MQBACK)should a problem arise.Randy J Clark wrote:>I want to have mulitple instances of the same long running process>executing.>>I want them NOT to retrieve the same messages - period.>>For instance if only messages arrives on the queue and I have two processes>reading it both waiting for a message will they both retrieve the same>message or will one get the message and the other gets nothing.>>What open options do I use>MQOO_INPUT_SHARED>>The just GET with the GMO-SYNCPOINT>>Instructions for managing your mailing list subscription are provided in>the Listserv General Users Guide available at http://www.lsoft.com>Archive: http://vm.akh-wien.ac.at/MQSeries.archive>>>--Regards,Thomas Dunlap Chief Technology Officer [EMAIL PROTECTED]Themis, Inc. http://www.themisinc.com 1 (800) 756-3000Instructions for managing your mailing list subscription are provided inthe Listserv General Users Guide available at http://www.lsoft.comArchive: http://vm.akh-wien.ac.at/MQSeries.archive The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier ilectronique est une communication privie ` l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'jtes pas le destinataire privu, vous jtes avisi, par les prisentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que ce soit est interdit. Si vous n'jtes pas spicifiquement autorisi ` recevoir ce courriel ou si vous croyez l'avoir regu par erreur, veuillez en aviser l'expiditeur original immidiatement. Nous respectons les demandes similaires qui touchent la confidentialiti des communications par courrier ilectronique.
Re: can two processes both get the same message
Does anyone know how WMQ will 'wake up' the application? "Thomas Dunlap" <[EMAIL PROTECTED]> Sent by: "MQSeries List" <[EMAIL PROTECTED]> 11/05/2003 06:00 AM Please respond to "MQSeries List" To: [EMAIL PROTECTED] cc: Subject: Re: can two processes both get the same message Randy, Not to worry. When multiple applications are using MQGET with MQGMO_WAIT, only one will wake up as a message arrives into the queue. The other will wait for the next message. A single message will not wake up multiple applications. Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with MQGMO_SYNCPOINT. The latter option also ensures that no 2 applications will retrieve the same message, plus allows you to roll back (MQBACK) should a problem arise. Randy J Clark wrote: >I want to have mulitple instances of the same long running process >executing. > >I want them NOT to retrieve the same messages - period. > >For instance if only messages arrives on the queue and I have two processes >reading it both waiting for a message will they both retrieve the same >message or will one get the message and the other gets nothing. > >What open options do I use >MQOO_INPUT_SHARED > >The just GET with the GMO-SYNCPOINT > >Instructions for managing your mailing list subscription are provided in >the Listserv General Users Guide available at http://www.lsoft.com >Archive: http://vm.akh-wien.ac.at/MQSeries.archive > > > -- Regards, Thomas Dunlap Chief Technology Officer [EMAIL PROTECTED] Themis, Inc. http://www.themisinc.com 1 (800) 756-3000 Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message.
Re: can two processes both get the same message
>Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with >MQGMO_SYNCPOINT. The >latter option also ensures that no 2 applications will retrieve the same >message, Clarification/correction here: MQGMO_SYNCPOINT has nothing to do with "ensuring that no 2 applications will retrieve the same message". A message is always retrieved by one application only (except for MQGET with BROWSE option without MQGMO_LOCK). The only reason you would use MQGMO_SYNCPOINT, with a non-browse MQGET, is when you want to retrieve the message under a UOW -- so that you can later on backout or commit the message. If you choose "backout", the message is re-instated on the queue. "Commit" will permanently remove the message from the queue. Before the backout/commit the message is marked unavailable to the other apps.If MQGMO_NO_SYNCPOINT is specified instead, the retrieved message is permanently removed from the queue so it cannot be backed out. So, regardless of whether you use SYNCPOINT option or not, ONLY ONE "destructive MQGET" gets the message. If you want to Browse the messages only and you want the current message to be invisible to another handle within or outside of your program: You would have to use MQGMO_BROWSE* + MQGMO_LOCK. In this case, only one message is locked on a queue. Regards, Ruzi -Original Message- From: Thomas Dunlap [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:00 AM To: [EMAIL PROTECTED] Subject: Re: can two processes both get the same message Randy, Not to worry. When multiple applications are using MQGET with MQGMO_WAIT, only one will wake up as a message arrives into the queue. The other will wait for the next message. A single message will not wake up multiple applications. Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with MQGMO_SYNCPOINT. The latter option also ensures that no 2 applications will retrieve the same message, plus allows you to roll back (MQBACK) should a problem arise. Randy J Clark wrote: >I want to have mulitple instances of the same long running process >executing. > >I want them NOT to retrieve the same messages - period. > >For instance if only messages arrives on the queue and I have two processes >reading it both waiting for a message will they both retrieve the same >message or will one get the message and the other gets nothing. > >What open options do I use >MQOO_INPUT_SHARED > >The just GET with the GMO-SYNCPOINT > >Instructions for managing your mailing list subscription are provided in >the Listserv General Users Guide available at http://www.lsoft.com >Archive: http://vm.akh-wien.ac.at/MQSeries.archive > > > -- Regards, Thomas DunlapChief Technology Officer[EMAIL PROTECTED] Themis, Inc.http://www.themisinc.com1 (800) 756-3000 Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier électronique est une communication privée à l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé, par les présentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que ce soit est interdit. Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur original immédiatement. Nous respectons les demandes similaires qui touchent la confidentialité des communications par courrier électronique. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: can two processes both get the same message
Randy, Not to worry. When multiple applications are using MQGET with MQGMO_WAIT, only one will wake up as a message arrives into the queue. The other will wait for the next message. A single message will not wake up multiple applications. Yes, you do want to use MQOO_INPUT_SHARED and perform the MQGET with MQGMO_SYNCPOINT. The latter option also ensures that no 2 applications will retrieve the same message, plus allows you to roll back (MQBACK) should a problem arise. Randy J Clark wrote: I want to have mulitple instances of the same long running process executing. I want them NOT to retrieve the same messages - period. For instance if only messages arrives on the queue and I have two processes reading it both waiting for a message will they both retrieve the same message or will one get the message and the other gets nothing. What open options do I use MQOO_INPUT_SHARED The just GET with the GMO-SYNCPOINT Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive -- Regards, Thomas DunlapChief Technology Officer[EMAIL PROTECTED] Themis, Inc.http://www.themisinc.com1 (800) 756-3000 Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: can two processes both get the same message
Hi Only 1 process will retrieve the message. When one of the processes does a GET, the message is essentially "locked" at that point and the other processes cannot retrieve it. It is not uncommon to have many programs draining a queue for throughput and performance reasons. I have several that have as many as 30 programs running against them. Thanks Dan -Original Message- From: MQSeries List [mailto:[EMAIL PROTECTED] Behalf Of Randy J Clark Sent: Tuesday, November 04, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: can two processes both get the same message I want to have mulitple instances of the same long running process executing. I want them NOT to retrieve the same messages - period. For instance if only messages arrives on the queue and I have two processes reading it both waiting for a message will they both retrieve the same message or will one get the message and the other gets nothing. What open options do I use MQOO_INPUT_SHARED The just GET with the GMO-SYNCPOINT Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: can two processes both get the same message
At 05:55 PM 11/4/2003, Randy J Clark wrote: I want to have mulitple instances of the same long running process executing. I want them NOT to retrieve the same messages - period. For instance if only messages arrives on the queue and I have two processes reading it both waiting for a message will they both retrieve the same message or will one get the message and the other gets nothing. The latter. Each instance has a unique "object handle" to the queue and the Queue Manager processes each as a separate request. You will *never* get the same message sent to two different processes (unless you opened the queue for "browse" mode). What open options do I use MQOO_INPUT_SHARED Yes. The just GET with the GMO-SYNCPOINT Yes, if you want to use syncpoint processing. -Will Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive