title: configuring username and password in jndi properties for ActiveMQ
body: <p>I have the below spring configuration to connect to ActiveMQ:</p>
  
  <pre><code>&lt;bean id="connectionFactory"   class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
      &lt;property name="brokerURL" value="tcp://10.3.2.3:61616" /&gt;
      &lt;property name="userName"
          value="Platform.user.consumer" /&gt;
      &lt;property name="password" value="Test123"&gt;&lt;/property&gt;
      &lt;property name="redeliveryPolicy"&gt;
          &lt;bean class="org.apache.activemq.RedeliveryPolicy"&gt;
              &lt;property name="maximumRedeliveries" value="7" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I want to configure the properties in the external property file and want to load using JNDI. I have configured the JNDI parameters inside the properties like below:</p>
  
  <pre><code>#Active MQ properties
    java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
    java.naming.provider.url=tcp://localhost:61616
    connectionFactoryNames=connectionFactory
    #register the queue in the JNDI using the below form
    #queue.[queueName]=
    queue.myQueue=com.inputqueue
  </code></pre>
  
  <p>How can I configure the <code>Platform.user.consumer</code> and <code>password</code> property in the properties file. Please let me know since this is not mentioned in the documentation of Active MQ </p>