title: EJB 3.x beans are not deployed at server startup in jboss-as-7.1.1.Final
body: <p>I am migrating my application from EJB 2.x to EJB 3.x. I used annotations and removed bean from ejb-jar.xml and jboss.xml. But I could not found my bean from console.</p>
  
  <p>Is ejb-jar.xml necessary for ejb 3?</p>
  
  <h2>ejb 2.x</h2>
  
  <h2>ejb-jar.xml</h2>
  
  <pre><code> &lt;session&gt;
      &lt;display-name&gt;Accounting Service&lt;/display-name&gt;
      &lt;ejb-name&gt;AccountingEJB&lt;/ejb-name&gt;
      &lt;home&gt;com.mysedan.service.accounting.ejb.AccountingHome&lt;/home&gt;
      &lt;business-remote&gt;com.mysedan.service.accounting.ejb.Accounting&lt;/business-remote&gt;
      &lt;ejb-class&gt;com.mysedan.service.accounting.ejb.AccountingEJB&lt;/ejb-class&gt;
      &lt;session-type&gt;Stateless&lt;/session-type&gt;
      &lt;transaction-type&gt;Container&lt;/transaction-type&gt;
      &lt;resource-ref&gt;
          &lt;description&gt;The mysedan DS&lt;/description&gt;
          &lt;res-ref-name&gt;myDS&lt;/res-ref-name&gt;
          &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
          &lt;res-auth&gt;Container&lt;/res-auth&gt;
          &lt;lookup-name&gt;java:/myDS&lt;/lookup-name&gt;
      &lt;/resource-ref&gt;
  &lt;/session&gt;
  </code></pre>
  
  <h2>jboss.xml</h2>
  
  <pre><code>&lt;session&gt;
      &lt;ejb-name&gt;AccountingEJB&lt;/ejb-name&gt;
      &lt;jndi-name&gt;com.mysedan.service.accounting.ejb.Accounting&lt;/jndi-name&gt;
      &lt;resource-ref&gt;
          &lt;res-ref-name&gt;mysDS&lt;/res-ref-name&gt;
          &lt;resource-name&gt;myDS&lt;/resource-name&gt;
      &lt;/resource-ref&gt;
  &lt;/session&gt;
  </code></pre>
  
  <h2>ejb 3.x</h2>
  
  <pre><code>@Singleton
  @Startup
  @Remote
  public interface Accounting  {
  -------
  -----
  }
  
  
  @Startup
  @Stateless
  public class AccountingEJB implements Accounting {
      private SessionContext ctx;
  ------------
  --------
  }
  </code></pre>
  
  <p>Do I required any additional configuration?</p>