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
arshad_sahani2Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Radek BaranowskiConnect With a Mentor Full-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:
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
 
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.