title: How to pass user defined username from IBM Websphere Application server to AS400 MQ server for authentication?
body: <p>I am having an issue with connecting AS400 MQ Local Queue, its rejecting with code JMSWMQ2013. </p>
  
  <p>My appserver has a <em>username</em> as <em>mquser@mydomain.com</em> but in AS400 I am not able to give the specified username in MQ Object Authority.</p>
  
  <p>Is there any way to connect to the queue defined in AS400 machine from Websphere Appserver on windows machine?</p>
  
  <p>Below is the error i am facing while connecting:</p>
  
  <pre><code>FFDC Exception:com.ibm.msg.client.jms.DetailedJMSSecurityException SourceId:com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection ProbeId:116 Reporter:com.ibm.ejs.jms.JMSManagedQueueConnection@db6f33e4
  com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'TESTQMGR' with connection mode 'Client' and host name 'AS400T(1416)'.
  Please check if the supplied username and password are correct on the QueueManager to which you are connecting.
  
  Root cause:  
  
  JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').
      at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:204)
  </code></pre>