title: JNDI binding in JBOss for MQ
body: <p>I need a little bit of help in configuring JBoss to work with MQ. I have created initial context in MQ using IBM MQ Explorer and have given a local directory for all bindings like file:/C:/jndi. I have created a connection factory for this initial context. Now JBoss documentation says to bind like this </p>
  
  <pre><code>    &lt;connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" 
                      jndi-name="java:jboss/MQ.CONNECTIONFACTORY.NAME" 
                      pool-name="MQ.CONNECTIONFACTORY.NAME"&gt;
  </code></pre>
  
  <p>I think I am missing some point here. How do I tell Jboss that my InitialContext bindings are in a directory. I have tried most of the combinations. May be I am not getting the concept right. Any pointers ?</p>
  
  <p>When I try to access this MQ.CONNECTIONFACTORY.NAME from a test servlet I wrote I get javax.naming.NameNotFoundException . If I follow same steps in Java SE environment I am successfully able to establish a connection. I am new to application servers and the question might be naive</p>
  
  <p>Regards</p>