title: WSO2 ESB populating JMS message store config issue
body: <p>I am trying to populate a JMS message store from the WSO2 ESB.</p>
  
  <p>I set up the following configuration for the message store...</p>
  
  <pre><code>&lt;messageStore name="JMSMS" class="org.apache.synapse.message.store.impl.jms.JmsStore" 
  xmlns="http://ws.apache.org/ns/synapse"&gt;
      &lt;parameter name="java.naming.factory.initial"&gt;org.wso2.andes.jndi.PropertiesFileInitialContextFactory
      &lt;/parameter&gt;
      &lt;parameter name="java.naming.provider.url"&gt;repository/conf/jndi.properties&lt;/parameter&gt;
      &lt;parameter name="store.jms.destination"&gt;JMSMS&lt;/parameter&gt;
      &lt;parameter name="store.jms.username"&gt;admin&lt;/parameter&gt;
      &lt;parameter name="store.jms.password"&gt;admin&lt;/parameter&gt;
      &lt;parameter name="store.jms.JMSSpecVersion"&gt;1.1&lt;/parameter&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I start the ESB I get the following error :- </p>
  
  <blockquote>
    <p>[2014-07-29 16:43:45,633] ERROR - JmsStore Store [JMSMS]. Could not
    create a new connection to the broker. Initial Context
    Factory:[org.apache.qpid.jn di.PropertiesFileInitialContextFactory];
    Provider URL:[repository/conf/jndi.properties]; Connection
    Factory:[null].</p>
  </blockquote>
  
  <p>I have used the above <code>java.naming.factory.initial</code> to successfully connect to a standard Message Broker queue as an endpoint without going through the Message store.</p>
  
  <p>I have also tried changing the value of <code>java.naming.factory.initial</code> to <code>org.apache.qpid.jndi.PropertiesFileInitialContextFactory</code> but get the same error.</p>
  
  <p>Does anyone have an idea of what config or files I am missing?</p>
  
  <p>Cheers
  Macca</p>
  
  <p><strong>Update</strong></p>
  
  <p>Below is the jndi.properties and axis2.xml config I am using</p>
  
  <p>JNDI.Properties</p>
  
  <pre><code>connectionfactory.ConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://inf02-3:5673'
  
  queue.JMSMS=JMSMS
  </code></pre>
  
  <p>axis2.xml</p>
  
  <pre><code>&lt;transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"&gt; 
      &lt;parameter name="default" locked="false"&gt; 
          &lt;parameter name="java.naming.factory.initial" locked="false"&gt;org.wso2.andes.jndi.PropertiesFileInitialContextFactory&lt;/parameter&gt; 
          &lt;parameter name="java.naming.provider.url" locked="false"&gt;repository/conf/jndi.properties&lt;/parameter&gt; 
          &lt;parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false"&gt;ConnectionFactory&lt;/parameter&gt; 
      &lt;/parameter&gt; 
  &lt;/transportSender&gt;
  </code></pre>