title: JNDI Context :: Name jms not bound in this Context
body: <p>I am trying to configure a JMS server (OpenJMS) into a Spring application and when I refer the resources using the notation "jms/&lt;> I get a "name" not bound exception.</p>
  
  <p>Any clue what is missing?</p>
  
  <pre><code>javax.naming.NameNotFoundException: Name jms is not bound in this Context
      at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
  </code></pre>
  
  <p>The bean is defined as:</p>
  
  <pre><code>&lt;bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
      &lt;property name="jndiTemplate" ref="jmsProvider"/&gt;
      &lt;property name="jndiName" value="jms/RefreshTopic_CF"/&gt;
      &lt;property name="resourceRef" value="true" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I have the JMS lib in class path and the openjms server is running.</p>