title: Inject a stateless EJB with @Inject into CDI Weld ManagedBean (JSF 1.2 EJB Application on jboss 6 AS)
body: <p>Currently I am  trying to inject a stateless EJB into a CDI managed controller on Jboss 6 AS Final. The controller is managed in the context an accessible from the JSF pages. If I inject the stateless bean with <code>@EJB</code> it is working. If I inject the stateless EJB with <code>@Inject</code> I get the following Exception:</p>
  
  <p>My controller:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Named("TestController")
  public class TestController {   
      @Inject
      private TestManagerLocal myTestManager;
          ...
      }
  }
  </code></pre>
  
  <p>My stateless bean:</p>
  
  <pre class="lang-java prettyprint-override"><code>@SuppressWarnings("unchecked")
  @Stateless
  public class TestManagerBean implements TestManagerLocal {
  
      @PersistenceContext
      private EntityManager em;
          ...
  }
  </code></pre>
  
  <p>The Interface of the Bean is annotated with @Local.</p>
  
  <p>If I try to call myTestManager I get the following exception:</p>
  
  <blockquote>
    <p>WELD-000079 Could not find the EJB in JNDI:  class
    de.crud.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$usr$local$jboss$server$default$deploy$test$ear"-SessionBean-TestManagerBean_$$_WeldProxy</p>
  </blockquote>
  
  <p>THX a lot.</p>