Posted: Tue Apr 22, 2003 5:56 am Post subject: Use of MQSERVER environment variable in .Net apps
Newbie
Joined: 22 Apr 2003 Posts: 4
Hi
I am new to this MQSeries programming world. I am trying to interface a Vb.Net app with MQSeries.
Our organization has been running this MQSeries interface using another OO language.
I am using the support pac from IBM i.e the Websphere classes for .Net.
The following is how i create an instance of the MQQueueManager
imports IBM.wmq
Dim mqQMgr As MQQueueManager
mqQMgr = New MQQueueManager(MQ_QUEUE_MANAGER, MQ_CHANNEL_NAME, MQ_SERVER_NAME)
This gives an exception if i dont create the MQSERVER environment variable. Do i always need to create the MQSERVER environment variable?
My QSeries error log has the following error in it.
AMQ9498: The MQCD structure supplied was not valid.
EXPLANATION:
The value of the 'Version' field has the value '7'. This value is invalid for
the operation requested.
ACTION:
Change the parameter and retry the operation.
As the error says the MQCD structure is not valid. How do i pass the MQCD structure. The MqChannelDefinition class seems to be private to IBM.WMQ .
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