Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mqseries and error 2035

Status
Not open for further replies.

robertjenkin

Programmer
Apr 23, 2003
4
US
Hi all...

I trying to get a vb6 client to talk to a w2k mq server.

I beleive I'm headed in right direction (would be a first).

I'm trying with the folling code segment

MQCNOCD_DEFAULTS co
co.ConnectOpts.Options = MQCNO_NONE
co.ChannelDef.ChannelName = "SYSTEM.DEF.SVRCONN"
co.ChannelDef.ConnectionName = "10.5.5.213"
co.ChannelDef.UserIdentifier = "admin on that server"
co.ChannelDef.Password = "pwd for the admin account"

' connect to default queue manager
MQCONNXAny "QM_testing.surecomp_usa.com", co, Hconn, cc, Reason
If cc <> MQCC_OK Then
MsgBox &quot;MQCONN failed with code &quot; & Reason, vbOKOnly + vbExclamation, &quot;Error&quot;
end if

All I get is error 2035.

Thanks in advance...
 
Have you checked the AMQERR01.LOG file for the associated message. This should indicate for which resource the userid is being debnied access.

Garry.
 
Check to see the userid you are attemtpting to use has the appropriate permissions to access the objects on the server side.


Cheers
KK
 
Do you know if userid and password you are using to connect has admin authority on the machine where MQ queue manager is running. please try making this user a member of mqm group.

 
Security violations are only written to the SYSTEM.ADMIN.QMGR.EVENT queue. Check here to see exactly why you are being denied access and to what - make sure the QMgr has Authority Events enabled (AUTHOREV(ENABLED))

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top