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 » Error 2110 when getting a response from a CICS bridge

Post new topic  Reply to topic
 Error 2110 when getting a response from a CICS bridge « View previous topic :: View next topic » 
Author Message
wfudeac92
PostPosted: Mon May 08, 2006 10:42 am    Post subject: Error 2110 when getting a response from a CICS bridge Reply with quote

Novice

Joined: 24 Apr 2006
Posts: 21

I am sending a message to a CICS bridge from a C# program. The CICS program receives the message correctly and then sends a response back to me. When I do a MQGET from my .NET assembly, I get a 2110 error. Here is a snippet of the function that is doing the get. Does anyone have any ideas on what I am doing wrong?

private string getMessage(string replyQueueManager, string replyQueueName)
{

MQQueueManager mqQManagerReply = null;
MQQueue mqQueueReply = null;

try
{
// Getting the Response
mqQManagerReply = new MQQueueManager(replyQueueManager, ConnectOptions);
mqQueueReply = mqQManagerReply.AccessQueue(replyQueueName,MQC.MQOO_INPUT_SHARED|MQC.MQOO_BROWSE);
MQGetMessageOptions mqGMO = new MQGetMessageOptions();
mqGMO.Version = MQC.MQGMO_VERSION_3;
mqGMO.MatchOptions = MQC.MQMO_MATCH_MSG_ID; //needs to revisit as Message ID is for MQMD only
mqGMO.Options = MQC.MQGMO_WAIT | MQC.MQGMO_NO_SYNCPOINT | MQC.MQGMO_CONVERT;
mqGMO.WaitInterval = Convert.ToInt32(waitInterval); // needs to get from Configuration

MQMessage mqMessageReply = new MQMessage();
mqMessageReply.MessageId = messageIDPut;
mqMessageReply.CharacterSet = int.Parse(charSet); string replyMessage = null;
while (true)
{
mqQueueReply.Get(mqMessageReply, mqGMO);
replyMessage += mqMessageReply.ReadString(mqMessageReply.DataLength);
string endIndicator = EbcdicToAscii(mqMessageReply.CorrelationId);
endIndicator = endIndicator.Substring(1,4);
if(endIndicator != "MORE" || (mqMessageReply.CompletionCode!= 0 & mqMessageReply.CompletionCode!= 1 & mqMessageReply.ReasonCode != 2080))
{
break;
}
}

if (mqQueueReply !=null && mqQueueReply.IsOpen)
mqQueueReply.Close();

if (mqQManagerReply !=null && mqQManagerReply.IsConnected)
mqQManagerReply.Disconnect();

return replyMessage;
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon May 08, 2006 10:46 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Please don't DOUBLE POST....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Error 2110 when getting a response from a CICS bridge
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.