Hi Pisharath, I have not done an MQ client app without installing an MQ client yet. And I agree with Stefan that there might be writes to places where we don't know about while we are installing the client. Maybe that is one of the reasons why the 2195 comes up.
We can do the install without the additional stuff. I am not aware if there is any way by which we can do it using just the DLLs. Any ideas any one? Kind Regards Aby -----Original Message----- From: Pisharath Krishnan To: [EMAIL PROTECTED] Sent: 7/25/02 2:21 PM Subject: Re: basic question - how to connect to MQSeries server Thanks for your help aby. I tried using just the two lib files (and the header files, and dlls for running the app). But when I am trying to run the app, it is giving me and error like this: ... could not display the text for error 536895891 and finally, failure with reason code 2195 (which is unexpected error) However, if I install the client, everything runs fine... I would love to avoid having to install the full client.... do you have any idea what I am doing wrong ? Thanks, - krishnan "Philip, Aby" <[EMAIL PROTECTED]> wrote: Hi Pisharath, You do not have to create channels on the client to connect to the server. since you are using C++ you need to set an environment variable called MQSERVER=SYSTEM.DEF.SVRCONN/TCP/'connection name(port number)' In this case the client connection part is done for you by MQSeries. The channel SYSTEM.DEF.SVRCONN can be replaced with your server connection channel, same for the connection protocol. Using the MQSERVER means that you are restricting your queue managers to one machine on one port. If you want to connect to queue managers on multiple hosts and ports you can also use the MQCONNX call. Here you can specify the hostname and port etc. (but that is in C but you can wrap it in the ImqQueueManager class). You could also go in for client connection tables. The libraries which you would need for a client connection are imqb23vn.lib and imqc23vn.lib. < BR>Of course there are a few dlls which you would need to get the app up and running as the libs are not enough. Hope this helps. Kind Regards Aby -----Original Message----- From: Pisharath Krishnan To: [EMAIL PROTECTED] Sent: 7/24/02 10:32 PM Subject: basic question - how to connect to MQSeries server I am writing an MQSeries app that will run C++ on NT (VC++) and need to connect to QueueManager on a UNIX box. The questions I have are: 1. Is it absolutely necessary for me to load MQSeries client on the NT boxes (and then create channels etc), or is there a direct way of specifying the hostname to connect to as a parameter to MQCONN or something? If so, what libs do I need on the NT box for linking etc ? 2. If it is indeed necessary to use MQ client, then do I really need to "install" the MQ client on each machine (there are a large number of users), or can I just link in the lib files ? If so, which files will the clients need for running the app ? Thanks in advance for any help, - krishnan _____ Do You Yahoo!? Yahoo! Health - Feel better, live better Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive _____ Do You Yahoo!? Yahoo! Health <http://health.yahoo.com/> - Feel better, live better Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
