|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CompCode: 2, Reason: 2173 error |
« View previous topic :: View next topic » |
Author |
Message
|
hhoang |
Posted: Mon Jan 09, 2006 1:13 pm Post subject: CompCode: 2, Reason: 2173 error |
|
|
Novice
Joined: 14 Nov 2002 Posts: 21
|
I have a problem putting the message to the queue. Do you have any ideas?
Here is the code:
Code:
try
{
MQMessage message = new MQMessage();
message.Format = MQC.MQFMT_STRING;
MQQueueManager queueManager = new MQQueueManager(queueMgrName,channelName, mqServerName);
MQQueue queue = queueManager.AccessQueue(queueName, MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);
message.WriteString(DateTime.Now.ToLongDateString());
MQPutMessageOptions options = new MQPutMessageOptions();
options.Options = MQC.XYZ;
//error occurred right here.
queue.Put(message, options);
queueManager.Disconnect();
}
catch(Exception ex)
{
throw ex;
}
Here is the error I get: CompCode: 2, Reason: 2173 error
Here is what the manual said about this error "Put-message options structure not valid. " I don't understand this at all.
I have used all of the following field for the options but nothing works. Bottomline, I can connect to the queue manager and I can access the queue. The only problem is that I can not put message.
My development workstation is XP and the server where MQ Server installed is mainframe.
MQC.MQPMO_DEFAULT_CONTEXT Associate default context with the message.
MQC.MQPMO_FAIL_IF_QUIESCING Fail if the queue manager is quiescing.
MQC.MQPMO_LOGICAL_ORDER* Put logical messages and segments in message groups into their logical order.
MQC.MQPMO_NEW_CORREL_ID* Generate a new correlation id for each sent message.
MQC.MQPMO_NEW_MSG_ID* Generate a new message id for each sent message.
MQC.MQPMO_NONE No options specified. Do not use in conjunction with other options.
MQC.MQPMO_NO_CONTEXT No context is to be associated with the message.
MQC.MQPMO_NO_SYNCPOINT Put a message without syncpoint control. Note that, if the syncpoint control option is not specified, a default of no syncpoint is assumed. This applies to all supported platforms.
MQC.MQPMO_PASS_ALL_CONTEXT Pass all context from an input queue handle.
MQC.MQPMO_PASS_IDENTITY_CONTEXT Pass identity context from an input queue handle.
MQC.MQPMO_SET_ALL_CONTEXT Set all context from the application.
MQC.MQPMO_SET_IDENTITY_CONTEXT Set identity context from the application.
MQC.MQPMO_SYNCPOINT Put a message with syncpoint control. The message is not visible outside the unit of work until the unit of work
Thank you very much |
|
Back to top |
|
 |
EddieA |
Posted: Mon Jan 09, 2006 1:44 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Don't open a new thread.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|