Solved

how to avoid error  MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ from WebSphere

Posted on 2014-12-17
7
793 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
[X]
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
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
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.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 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