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 » Clustering » problem in putting message on cluster queue

Post new topic  Reply to topic
 problem in putting message on cluster queue « View previous topic :: View next topic » 
Author Message
mq_newbie1
PostPosted: Mon Feb 13, 2006 5:24 am    Post subject: problem in putting message on cluster queue Reply with quote

Novice

Joined: 08 Jan 2006
Posts: 15

We are trying to put a message on cluster queue via a distribution list. We got error 2085. I have attached code snippet. Could anyone point out what could be wrong?


m_dlist.setConnectionReference(m_mgr);
m_queue.setDistributionListReference(m_dlist);
m_dlist.open();

if(long rCode = m_dlist.reasonCode())
{
GTCSLOG << ERROR
<< "MQPutConnection: DistributionList\n"
<< "[" << rCode << "] " << reasonString (rCode)
<< endlog;

rCode = m_queue.reasonCode();
GTCSLOG << ERROR
<< "MQPutConnection: Queue\n"
<< "[" << rCode << "] " << reasonString(rCode)
<< endlog;

return(false);
}
if(m_dlist.completionCode() == MQCC_FAILED)
{
GTCSLOG << ERROR << "MQPutConnection:"
<< "Failed to open distribution list" << endlog;
return(false);
}
*/
return(true);
}

//**********************************************************************
// put
//**********************************************************************
bool MQPutConnection::put(MQMessage& msg)
{
if(!m_dlist.put(msg))
{
GTCSLOG << ERROR << "MQPutConnection:"
<< "Failed to send message on queue "
<< m_queueName
<< m_queue.queueManagerName()
<< " Reason code "
<< (long)m_queue.reasonCode() << endlog;
return(false);
}
else
{
// Added message
}

if(m_dlist.completionCode() == MQCC_FAILED)
{
return(false);
}

return(true);
}
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Feb 13, 2006 5:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The reason is that you are using a bad name in your Distribution List.

It's either in the wrong case or it doesn't exist.

Also, with DistributionLists, there is usually a collection of reason codes returned, one for each item in the DL. This will help you find out which name in your DL is bad.
_________________
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 » Clustering » problem in putting message on cluster queue
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.