Am writing an .net windows application in which i have to connect to IBM MQ on remote machine running unix to post messages. This is a tool kinda thing for an enterprise application.
this is the code am using to connect to the MQ.
Expand|Select|Wrap|Line Numbers
- MQEnvironment.Hostname = hostName;
- MQEnvironment.Port = port;
- MQEnvironment.Channel = "SYSTEM.DEF.SVRCONN";
- MQQueueManager qm=new MQQueueManager(queueMgr);
MQQueueManager qm=new MQQueueManager(queueMgr);
Exception details :- CompCode 2 Reason 2035 ..from error code lookup i learnt that its MQRC_NOT_AUTHORIZED.
read somewhere that the user's credentials under whom application is run will be supplied for authorization automatically..if thats the case how is cross platform connectivity is possible...in my case mq client is on windows and
mq server is on unix.
Do i have to specify the userid,password for unix system to override this?
If so, how? MQQueueManager Class doesnt have a constructor that accepts userid/password as a parameter and MQEnvironment doesnt have a property for userid/password..
Am using Websphere Mq 5.3 ? Is the option to specify userid/password available in the latest version 6.0?
seems MQ classes for java have options to specify userid/password but .NET classes didnt.
am pulling my hair over this for the past 3 days...please help..