Posted: Wed Oct 01, 2003 11:06 pm Post subject: Putting messages to remote queue using MQAX in VB6
Newbie
Joined: 25 Sep 2003 Posts: 4
Hi All,
My VB6 program using MQ ActiveX is able to put message to a local queue successfully but if i modified the same program to point to a remote queue i am receiving an error:
After trial and error, i solved the problem by commenting my reference to the MaximumMessageLength method of Queue. It seems that i am unable to read the value although i set the OpenOptions with:
MQOO_OUTPUT Or MQOO_INQUIRE Or MQOO_FAIL_IF_QUIESCING
What i was trying to do is to prevent putting a message that is more than the max msg length allowed by the Queue. Is there another way to add this validation in my program ? _________________ Jessie
What i was trying to do is to prevent putting a message that is more than the max msg length allowed by the Queue. Is there another way to add this validation in my program ?
Check for a return code of 2030(MQRC_MSG_TOO_BIG_FOR_Q) on the put.
This will tell you if the message is too big for the local queue, or the transmit queue, or the queue manager.
There's no way to tell if the message is too big for a remote queue manager, or the final queue after routing. Except by monitoring your Dead Letter Queue. _________________ I am *not* the model of the modern major general.
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