title: ejb 3.1, weblogic 12c, java 1.6 Jndi Lookup issue
body: <pre><code>I have problem in configuring JNDI lookup for ejb3.1 and weblogic 12c, jdk1.6
  
  @Remote
  public interface Bank{
  
      public String accounts();
  
  }
  
  @Stateless(name="BankSession")
  public class BankSessionBean implements Bank{
  
      @Override
      public String accounts() {
                   ////////    }
  
  ejb-jar.xml:   
  
      &lt;enterprise-beans&gt;
          &lt;session&gt;
              &lt;display-name&gt;BankSession&lt;/display-name&gt;
              &lt;ejb-name&gt;BankSession&lt;/ejb-name&gt;
              &lt;business-remote&gt;com.examples.Bank&lt;/business-remote&gt;
              &lt;ejb-class&gt;com.examples.BankSessionBean&lt;/ejb-class&gt;
              &lt;session-type&gt;Stateless&lt;/session-type&gt;
              &lt;transaction-type&gt;Bean&lt;/transaction-type&gt;
          &lt;/session&gt;
      &lt;enterprise-beans&gt;
  
  weblogic-ejb-jar.xml:
  
   &lt;weblogic-enterprise-bean&gt;
      &lt;ejb-name&gt;BankSession&lt;/ejb-name&gt;    
      &lt;jndi-name&gt;BankSession&lt;/jndi-name&gt;
    &lt;/weblogic-enterprise-bean&gt;
  
  
  client code: 
  </code></pre>
  
  <p>When i start using Jndi Look up using this syntax 
  java:comp/env/ejb/BankSession</p>
  
  <p>Its giving following error.</p>
  
  <p>javax.naming.NameNotFoundException: While trying to lookup 'java:comp/env/ejb/BankSession' didn't find subcontext.</p>
  
  <p>Here ejbbean and client code runs on different jvm's.</p>
  
  <p>Which Jndi look up should i use ?</p>
  
  <ol>
  <li>java:comp/env/ejb/BankSession' </li>
  <li>java:global/applicationName/moduleName/BankSession</li>
  <li>java:module/BankSession</li>
  <li>java:app/moduleName/BankSession</li>
  </ol>
  
  <p>java:comp/env/ejb/BankSession is working fine with ejb 3.0 and oc4j server.</p>
  
  <p>When i migrate to ejb3.1 and weblogic 12c, its not working.</p>
  
  <p>I even tried without using weblogic deployment xml files. Same issue encountered.</p>
  
  <p>How should i configure my Jndi here ? Please help as i am facing this issue since long time.</p>