-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Gaddam_Prakash
Message 1 in Discussion

Hi,
I am new to MQ Programming.I am using managed MQ API amqndnet.dll to program.
 
I am able to Put a message fine but when getting the message ( at 
MQQueue.Get(objMQMessage, MQGetMsgOpt)) I get an exception with reason 
code:2033 and completeion code :2
 


Any help on this wld be appreciated:

Here is the sample code:

MQQueue = qMgr.AccessQueue(GetQueueName, MQC.MQOO_INPUT_SHARED)

Catch ex As MQException

if MQQueue.CompletionCode <> MQC.MQCC_OK Then

qMgr.Disconnect()

Throw ex

End If

End Try

lngOpenTime = Environment.TickCount - lngOpenTime

objMQMessage = New MQMessage

MQGetMsgOpt = New MQGetMessageOptions

MQGetMsgOpt.MatchOptions = MQC.MQMO_MATCH_MSG_ID

MQGetMsgOpt.Options = MQC.MQGMO_WAIT

MQGetMsgOpt.WaitInterval = GET_TIMEOUT

 lngGetTime = Environment.TickCount

Try

MQQueue.Get(objMQMessage, MQGetMsgOpt)

 


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to