title: How to get the new JNDI names (esp. ConnectionFactory)
body: <p>I upgraded to JBoss 7.0.1 and we are using the following JNDI lookup to get a connection to a HornetQ message queue.</p>
  
  <pre><code>InitialContext jndiContext = new InitialContext();
  QueueConnectionFactory qf = (QueueConnectionFactory) jndiContext.lookup( "ConnectionFactory" );
  </code></pre>
  
  <p>This results in a <code>NameNotFoundException</code> when used with JBoss 7. I have also tried the following:</p>
  
  <ul>
  <li>java:jms/ConnectionFactory</li>
  <li>java:env/ConnectionFactory</li>
  </ul>
  
  <p>.. and some others. But I think guessing won't get me far. How do I get the new JNDI names that are not logged in the console (like my EJB beans)?</p>
  
  <p>Kind regards,
  Sebastian</p>