title: Cannot convert value of type [com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle] to required type [javax.jms.ConnectionFactory]
body: <p>I have standard Spring JMS config </p>
  
  <pre><code>    &lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
          &lt;property name="connectionFactory" ref="connectionFactory" /&gt;
          &lt;property name="defaultDestination" ref="jmsdestination" /&gt;
      &lt;/bean&gt;
      &lt;bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiName" value="jms/MQAuditQueueConnectionFactory" /&gt;
      &lt;/bean&gt;
      &lt;bean id="jmsDestinationResolver" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiName" value="jms/MQAuditQueue" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>And I think a standard MQ on WAS 8.5.5.2, when I start my web-app I get:</p>
  
  <pre><code> Cannot convert value of type [com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory'
  </code></pre>
  
  <p>I note from my server I have the following classes in the following jars</p>
  
  <pre><code>class  com/ibm/ejs/jms/JMSQueueConnectionFactoryHandle.class found in /opt/websphere/was8//plugins/com.ibm.ws.runtime.jar
  </code></pre>
  
  <p>and</p>
  
  <pre><code>com/ibm/mq/jms/MQQueueConnectionFactory.class found in /opt/websphere/was8//installedConnectors/wmq.jmsra.rar/com.ibm.mqjms.jar
  </code></pre>
  
  <p>How do I get the WAS MQ to use the 2nd jar?</p>