MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Connecting to a remote queue with Visual Studio/Websphere 7.5

  • 1.  Connecting to a remote queue with Visual Studio/Websphere 7.5

    Posted 08/17/12 10:47 AM
    I've looked here, but was unable to determine if this issue has been addressed already.

    I'm trying to connect to a remote queue with VB in Visual Studio 2008 and WebSphere 7.5. Is anyone doing this?

    From what I read the software now seems to prevent access to remote queues, and I'm unsure how to override this from within the program. Can it be done, so that I can authorize my program to connect to the queue and pass a userid and password to Websphere?

    I was trying to use the IBM.WMQ.MQEnvironment variables to pass the userid & password, but from what I'm seeing at the remote queue, my active directory ID is passed.


    If it helps-My current code:
    IBM.WMQ.MQEnvironment.Password = "xxxxxxxx"
    IBM.WMQ.MQEnvironment.UserId = "xxxxx"
    IBM.WMQ.MQEnvironment.Port = "xxxx"
    IBM.WMQ.MQEnvironment.ConnectionName = "xxxx"

    QMgr = New MQQueueManager("aaa", "bbb", "cc")

    Queue = QMgr.AccessQueue("q", MQC.MQOO_OUTPUT)