Solved

how to avoid error  MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ from WebSphere

Posted on 2014-12-17
7
613 Views
Last Modified: 2014-12-19
Hi,
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: 7.5.0.2
0
Comment
Question by:arshad_sahani2
  • 4
  • 3
7 Comments
 

Author Comment

by:arshad_sahani2
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
0
 
LVL 11

Accepted Solution

by:
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: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.adm.doc/q086630_.htm
0
 

Author Comment

by:arshad_sahani2
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
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:arshad_sahani2
ID: 40506183
-gramatically
0
 
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.
0
 

Author Comment

by:arshad_sahani2
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
0
 
LVL 11

Expert Comment

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
can wordpress be used to edit a website made with code 2 162
modify .htaccess 8 140
IIS 7.5 - Security 2 104
website content maintenance 3 57
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now