I am able to get the message from the request queue but as an AbtMQError. I could see that relatedData has AbtMQMessage message.
Code:
anMQConnectionSpec queueManagerName: '';
server: true;
requestQueueName: 'TBAT.00000.CE.REQUEST'.
anMQConnection := AbtMQConnection new.
result := anMQConnection connectUsing: anMQConnectionSpec.
aQueue := (anMQConnection requestQueue ).
aQueue initializeGmo.
aQueue gmoOptions: ( ( ( AbtMQConstants::MqgmoSyncpoint bitOr: AbtMQConstants::MqgmoWait ) bitOr: AbtMQConstants::MqgmoFailIfQuiescing ) bitOr: AbtMQConstants::MqgmoConvert ).
aQueue gmo waitinterval: AbtMQConstants::MqwiUnlimited.
rc := aQueue open. .
(aMessage := anMQConnection getMessage: ( aQueue gmoOptions) wait: AbtMQConstants::MqwiUnlimited) isAbtError
ifTrue: [Transcript cr; show: 'message eror. ', (aMessage asString)]
ifFalse: [Transcript cr; show: 'message oks OK. '].
Error:
AbtMQError: rc=1 for #getMessage:wait:withQM:withHandle:withMessage: in an AbtMQqueue at (09/16/2014 06:46:49 AM) =>('MqccWarning' , '16r88E')
Is there any to get rid of this error? is there any other way to do the same. I need to use this get method only.
Thanks for any kind of help.
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.