title: Send to MQ from java always uses default installed mqm userid for IBM MQ version 6.0
body: <p>Our code runs in weblogic and we MQ 6.0. No matter if I use the default <code>createQueueConnection()</code> or <code>createQueueConnection("myuserid","mypassword")</code> it always seems to use userid <code>mqm</code>. See code below.</p>
  
  <p>When I connect from version 6.0 to an older mq installion 5 it seems to throw the following error <code>javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager</code> using the default <code>createQueueConnection()</code> unless I send a blank userid/password as in <code>createQueueConnection("","")</code></p>
  
  <p>How can I get myuserid to be send instead ? </p>
  
  <pre><code>Hashtable properties = new Hashtable(2);
  properties.put(Context.PROVIDER_URL,context);
  properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
  
  InitialContext ctx = new InitialContext(properties);
  QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("QCF");
  QueueConnection qc = qcf.createQueueConnection();
  javax.jms.Queue q = (javax.jms.Queue) ctx.lookup("MYQUEUE");
  QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
  TextMessage tm = qs.createTextMessage();
  tm.setText(outString);
  QueueSender sender = qs.createSender(q);
  sender.send(tm);
  sender.close();
  qs.close();
  qc.close();
  </code></pre>