Search code examples
javawebsphereibm-mq

MQJMS2013 invalid security authentication


I am trying to connect to IBM Websphere MQ Server from IBM Websphere Application Server.

I am getting the following error:

MQJMS2013: invalid security authentication supplied for MQQueueManager

What I understand is, this is because of invalid security credentials by WAS while connecting to MQ Manager.

I have tried different combination of providing the MQ admin password e.g.

  1. Provide J2C authentication to MQ Connection Factory.
  2. Provide MQ admin username and password to Queues.
  3. Providing Blank username.
  4. Combination of all three above.

Also, as mentioned in some of the posts, I have tried the Transport Type as 'Binding' as well as 'Client' for QueueConnectionFactory.

Please suggest.


Solution

  • Finally got it working, after 2 days of applying combinations.

    To help other (and probably myself also in future), following was the issue:

    We were configuring IBM Websphere Application Server with IBM Websphere MQ server. We created queue connection factory, queues and listener ports right. We were getting the exception in question repeatedly.

    How did it work is: When you start your application server, the user that is starting the server should have access for MQ. i.e. the user should be part of group MQM. Just to add, after adding the group to the user, do remember to restart MQ server because MQ server refreshes the rights after restart only.

    Hope this helps.