Hello,
We got our MQ connected. Now, we want the queue to wait for unlimited time while getting the message. I have set the gmo wait interval option of the queue to MqwiUnlimited but no effect :( . On running the code we get an error message. On inspecteting queue, i could see wait interval is set to integer -1 which is equivalent to AbtMQConstants::MqwiUnlimited.
Code:
Queue initializeGmo.
aQueue gmoOptions: ( ( AbtMQConstants::MqgmoSyncpoint bitOr: AbtMQConstants::MqgmoFailIfQuiescing ) bitOr: AbtMQConstants::MqgmoConvert ). aQueue gmo waitinterval: AbtMQConstants::MqwiUnlimited. aQueue. Error message:
Get messages from the queue.AbtMQError: rc=2 for #getMessage:wait:withQM:withHandle:withMessage: in an AbtMQqueue at (07/23/2014 07:30:08 AM) =>('MqccFailed' , 'MqrcNoMsgAvailable').
Is i am doing something wrong or missing something? Is there any other way to set the wait inteval of gmo option? Shouls we provide any option while opening the queue? If yes then how?
It would be great if anyone could provide the infor for the same. Thanks in advance.
Ankita You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Got the problem. I am using getMessage method to get the data for the queue. This method call getMessage:anInteger wait:0. Because of this wait 0 the previous set value is overridden.
Thank you.
On Wednesday, July 23, 2014 6:46:23 PM UTC+5:30, Ankita Srivastava wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |