ibm-messaging / mq-mqi-nodejs

Calling IBM MQ from Node.js - a JavaScript MQI wrapper
Apache License 2.0
79 stars 41 forks source link

Set the App Name #148

Closed mariojunior closed 2 years ago

mariojunior commented 2 years ago

Is there any way to set the Application Name that is connected to the broker? All my nodejs apps only show "node" and would be useful for me showing meaningful names indicating who is producing/consuming msgs to/from

image

Thanks.

ibmmqmet commented 2 years ago

Look at the samples/amqsconn.js program which sets cno.ApplName. For alternative mechanisms, read the product documentation at https://www.ibm.com/docs/en/ibm-mq/9.3?topic=languages-using-application-name-in-supported-programming where the 'C' client information applies.

mariojunior commented 2 years ago

Cool, legend! And I found out it's a MQT.CHAR28 and funny the WebSphere Java client uses the 28 chars 😃 Thanks, sir!