title: Are there JNDI namespace conventions?
body: <p>I have downloaded JBoss EAP 6.1 and I am going to add a new data source. I must bind the data source to a JNDI name. By reading the JNDI name of the sample data source which is:</p>
  
  <pre><code>java:jboss/datasources/ExampleDS
  </code></pre>
  
  <p>I see that they have used <code>datasources</code> after <code>java:jboss</code>. Is this just a naming convention - that I am not able to find anywhere - or would it be fine using <code>java:jboss/bananaboat/MyDS</code>?`</p>
  
  <p>Is it correct that the first part that is listed below - such as <code>java:comp</code> is the scope and the rest is just normal hierarchy organization?</p>
  
  <pre><code>java:comp/ - The namespace is scoped to the current component (i.e. EJB) 
  java:module/ - Scoped to the current module 
  java:app/ - Scoped to the current application      
  java:global/ - Scoped to the application server
  </code></pre>
  
  <p><a href="https://docs.jboss.org/author/display/AS71/JNDI+Reference" rel="nofollow">https://docs.jboss.org/author/display/AS71/JNDI+Reference</a></p>