The online community for software testing & quality assurance professionals
Calendar   Today's Topics

Lost Password?


Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1

Reged: 11/15/12
Posts: 1
Unable to create Websphere MQ Queue Manager object
      #719889 - 11/15/12 01:13 PM

I am trying to use DotNetFactory to instantiate an MQ Queue Manager object. The error message states "an exception was thrown by the target of an invocation". I have tried passing the queue manager name and I have tried to create a default queue manager. We are not using user id and password authentication but I can't help thinking there may be some other security related issue. We are using MQ version 7.1.
Any help would be greatly appreciated.

Here is my code so far >>

Dim oMQC
Dim oMqQueue
Dim oMqMessage
Dim oMqEnvironment
Dim strMQMDllPath
Dim intOpenOptions
Dim strQMgrName
Dim strQueueName

strQMgrName = environment.Value("queueManager")
strQueueName = environment.Value("queueVDA")
strMQMDllPath = "C:\\Program Files (x86)\\IBM\\WebSphere MQ\\bin\\amqmdnet.dll"
Set oMqEnvironment = DotNetFactory.CreateInstance("IBM.WMQ.MQEnvironment",strMQMDllPath)
oMqEnvironment.Hostname = environment.Value("hostName")
oMqEnvironment.Port = environment.Value("portName")
oMqEnvironment.Channel = environment.Value("channelName")

Set oMQC = DotNetFactory.CreateInstance("IBM.WMQ.MQC",strMQMDllPath)
' qmanager name,channel name, connection name
Set oMqQMgr = DotNetFactory.CreateInstance("IBM.WMQ.MQQueueManager",strMQMDllPath,strQMgrName)

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Extra information
0 registered and 53 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Topic views: 2781

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5