title: How to use Worklight JMS adapter with WAS JMS jndi definitions
body: <p>I had posted a similar query with the Worklight JMS adapter but using WebSphere MQ JMS jndi definitions</p>
  
  <p>In this case, I want to use the JMS jndi definitions created on the WAS ND application server layer that point to the WebSphere MQ queue manager</p>
  
  <p>I have a Worklight 6.1 environment installed on a WAS ND application server profile. My requirement is to connect to an external WebSphere MQ JMS queue manager using the Worklight JMS adapter component</p>
  
  <p>I have created the necessary JMS jndi definitions on the WAS ND application server profile - connecting to the MQ queue manager</p>
  
  <p>Connection Factory = jms/WorklightMQCF
  Queue Definition = jms/WorklightMQQueue</p>
  
  <p>I'm unable to get the adapter to work when installed to the Worklight environment on the WAS ND server</p>
  
  <p>The connection code in the adapter xml file is -</p>
  
  <pre><code>&lt;connectivity&gt;
      &lt;connectionPolicy xsi:type="jms:JMSConnectionPolicyType"&gt;
          &lt;jmsConnection
              connectionFactory="jms/WorklightMQCF"/&gt;
      &lt;/connectionPolicy&gt;
  &lt;/connectivity&gt;
  </code></pre>
  
  <p>Not sure what is the correct syntax I need to enter in the adapter xml file.</p>
  
  <p>Any help would be appreciated</p>