authentication - How to set the username/password on Websphere MQ connection string from .Net / C#? -


how specify username , password in wmq connection string? sample connection string i'm working with.

        uri sampleaddress = new uri("wmq://localhost:1414/msg/queue/q1?connectqueuemanager=qm1&replyto=q2"); 

how put userid/password used authentication mq manager here?

for v8.0 successful making connection in following way:

hashtable connectionproperties = new hashtable();                              connectionproperties.add(mqc.transport_property, mqc.transport_mqseries_managed); connectionproperties.add(mqc.host_name_property, _queueserver); connectionproperties.add(mqc.port_property, _portnumber); connectionproperties.add(mqc.channel_property, _channelinfo); connectionproperties.add(mqc.user_id_property, "userid"); connectionproperties.add(mqc.password_property, "password");                     queuemanager = new mqqueuemanager(_queuemanager, connectionproperties); 

see here. although version below 8.0 please see have use exit mechanism them client provided id not used.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -