how to avoid error  MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ from WebSphere

Posted on 2014-12-17
Last Modified: 2014-12-19
I am trying to create a connection factory from websphere application server to connect to
websphere Messaging Queue, the queue manager is running but the following error is shown MQRC_NOT_AUTHORIZED , Iam using  websphere application server  version 7.0
and MQ version:
Question by:arshad_sahani2
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Author Comment

ID: 40504492
Actually the error is shown when I click on "test connection" button when creating the queue connection factory from websphere application server's administration console, more details can be given upon request
LVL 11

Accepted Solution

Radek Baranowski earned 500 total points
ID: 40504564
this is because Mq 7.5 disables  access to any channel by admin user (the one in mqm group) by default. so, if you want to connect from process that is run by any user from mqm group, you need to disable channel authorization

to lift this limitation (for DEVELOPMENT purposes)
in MQ Explorer, just go to Channels -> Client Authentication Records and delete any entries there are.

For production configurations and environments you want to set MQ security correctly, please configure records as needed (allow user, IP etc.)

read more here:

Author Comment

ID: 40506180
hi your solution worked, but I have another question if I want to pass a user name should I create a JAAS configuration and associate that to the queue connection factory ? or it has to be done pro
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 40506183
LVL 11

Expert Comment

by:Radek Baranowski
ID: 40506486
never done that from inside Java code, but as far as Websphere principles go, yes, you should create JAAS and attach it to your CF.

Author Comment

ID: 40506524
I've requested that this question be closed as follows:

Accepted answer: 0 points for arshad_sahani2's comment #a40504492

for the following reason:

solution provided good
LVL 11

Expert Comment

by:Radek Baranowski
ID: 40506525
has this been community question ? if not, please assign points.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Firefox 3x on Windows crashes 6 207
Need Information on ASP.NET Application Thead Safety 1 295
Specify pages breaks in Chrome 5 45 3 102
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question