how to avoid error  MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ from WebSphere

Posted on 2014-12-17
Medium Priority
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 2000 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: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.adm.doc/q086630_.htm

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

771 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