ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Putting messages to remote queue using MQAX in VB6

Post new topic  Reply to topic
 Putting messages to remote queue using MQAX in VB6 « View previous topic :: View next topic » 
Author Message
jessie
PostPosted: Wed Oct 01, 2003 11:06 pm    Post subject: Putting messages to remote queue using MQAX in VB6 Reply with quote

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:

Error: MQAX200.MQQueue::SetName
Completion Code = 2
Reason Code = 6104
Reason Name = MQRC_ATTRIBUTE_LOCKED

The remote queue i am trying to access is defined locally but is pointing to a local Q of a remote queue manager from another windows server.

Please help and advise the proper way to achieve it using MQAX.

Thanks,
Jessie
_________________
Jessie
Back to top
View user's profile Send private message
jessie
PostPosted: Thu Oct 02, 2003 1:20 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2003
Posts: 4

follow-up:

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
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 02, 2003 5:01 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

jessie wrote:

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Putting messages to remote queue using MQAX in VB6
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.