user2881647
user2881647

Reputation: 35

Accessing MQ in .NET

I am writing a code in c# .NET which connects to IBM websphere. When tried to connect to queue manager i am getting the error:

2035 (07F3) (RC2035): MQRC_NOT_AUTHORIZED error message.

But with same details(Host name,port number,channel name,queue manager) i am able connect to queue manager and queue using java code.

What could be the reason?

Thanks in Advance

Upvotes: 0

Views: 917

Answers (1)

Roger
Roger

Reputation: 7506

When you connect to MQ via bindings mode, the MQ Client library uses the UserID that you are running under.

When you connect to MQ via client mode, the MQ Client library uses:

  • the UserID that is set in your code or
  • the value (UserID) set in the channel's MCAUSER field.

You should read up on MQ security and make sure you implement it correctly. Talk to your company's MQAdmin.

Upvotes: 1

Related Questions