Dirty Developer
Dirty Developer

Reputation: 562

How to set customize location of mqclient.ini using mqseries.net dll?

I want to set the mqclient.ini location to custom one rather than c:/program files(x86) /IBM/webspheremq.

I am using mqseries.net with c#. Websphere MQ version 7.5.0.0

I have read somewhere to use MQCLNTCF environment variable. But I am not sure how to use it? I am not able to find variable under MQEnvironment object.

Any help would be appreciated.

Upvotes: 0

Views: 1222

Answers (1)

Roger
Roger

Reputation: 7476

Do you know what a Windows Environment Variable is?

In a Windows batch file, do the following:

set MQCLNTCF=C:\some\path

Or make it global by going to Control Panel -> System -> Advanced System Setting -> Environment Variables

then set the variable as either a User or System environment variable.

Finally, did you read point #2 of that link? That is the easiest way of handling the mqclient.ini file.

Upvotes: 4

Related Questions