[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1055
  • Last Modified:

how to avoid error MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ from WebSphere

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
arshad_sahani2
Asked:
arshad_sahani2
  • 4
  • 3
1 Solution
 
arshad_sahani2Author Commented:
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
 
Radek BaranowskiFull-stack Java DeveloperCommented:
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
 
arshad_sahani2Author Commented:
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
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 
arshad_sahani2Author Commented:
-gramatically
0
 
Radek BaranowskiFull-stack Java DeveloperCommented:
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
 
arshad_sahani2Author Commented:
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
 
Radek BaranowskiFull-stack Java DeveloperCommented:
has this been community question ? if not, please assign points.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now