title: Use username and password for ActiveMQ JMS Connection
body: <p>Apache ActiveMQ creates a secure connection using username and password.</p>
  
  <pre><code>InitialContext initCtx = new InitialContext();
  javax.jms.ConnectionFactory qcf = (javax.jms.ConnectionFactory) initCtx.lookup(factoryName);
  Connection connection = qcf.createConnection(userName, password);
  </code></pre>
  
  <p>Where can I found these credentials. Are these username and password configured in any ActiveMQ configuration file?</p>