I have set imq.passfile.enabled, imq.passfile.dirpath and imq.passfile.name parameters in the broker's config.properties but when i execute imqcmd, i still have to explicitly specify -passfile <filename>. How come the program is not reading from the config.properties? Or i have misinterpreted in the usage of the mentioned parameters?
The file config.properties in the broker's instance directory is used only by the broker.
imqcmd doesn't read this file. It is deliberately independent of the broker instance directory, so you can run it from any remote machine which has MQ installed, even if that machine can't see the instance directory of the broker it is connecting to.