ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Passing a different user to connect to QMGR with vb.net

Post new topic  Reply to topic
 Passing a different user to connect to QMGR with vb.net « View previous topic :: View next topic » 
Author Message
klabran
PostPosted: Wed Oct 05, 2005 10:41 am    Post subject: Passing a different user to connect to QMGR with vb.net Reply with quote

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
View user's profile Send private message Visit poster's website
klabran
PostPosted: Wed Oct 05, 2005 12:11 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

It seems I have my answer....

.Net clients can't do this on the connect which is exactly what I need to do.

So I will either force a different user to run this app or I will do as Brad did if I can't change the user.

http://mqseries.net/phpBB/viewtopic.php?t=13899&view=next&sid=d63d76ec38ea56c93a87d6cd418e32b3

Kevin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Passing a different user to connect to QMGR with vb.net
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.