|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Passing a different user to connect to QMGR with vb.net |
« View previous topic :: View next topic » |
Author |
Message
|
klabran |
Posted: Wed Oct 05, 2005 10:41 am Post subject: Passing a different user to connect to QMGR with vb.net |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
Has anyone figured out how to pass a different user when connecting to a QMGR in VB.Net.... MQ 5.3 CSD11 Client
This is what I have tried but it isn't working. I am still connecting as me instead of the user specified in code?
Code: |
Dim y As New Hashtable
y.Add(IBM.WMQ.MQC.CHANNEL_PROPERTY, Channel)
y.Add(IBM.WMQ.MQC.HOST_NAME_PROPERTY, Conn)
y.Add(IBM.WMQ.MQC.USER_ID_PROPERTY, "awebber")
mqQMgr = New MQQueueManager(QM, y) ')Channel, Conn, )
mqQueue = mqQMgr.AccessQueue(QN, OpenOptions)
mqMsg = New MQMessage
mqMsg.CharacterSet = 437 'ascii - default is 1200 which is unicode.
mqMsg.Format = MQC.MQFMT_STRING
mqMsg.WriteString(Msg)
mqQueue.Put(mqMsg) ', mqPutMsgOpts)
|
|
|
Back to top |
|
 |
klabran |
Posted: Wed Oct 05, 2005 12:11 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|