I am currently trying to implement stateless EJB in a managed CDI controller on Jboss 6 AS Final. The controller is controlled in a context accessible from JSF pages. If I enter a standless bean using @EJB, it will work. If I insert stateless EJB @Inject, I get the following exception:
My controller:
@Named("TestController")
public class TestController {
@Inject
private TestManagerLocal myTestManager;
...
}
}
My stateless bean:
@SuppressWarnings("unchecked")
@Stateless
public class TestManagerBean implements TestManagerLocal {
@PersistenceContext
private EntityManager em;
...
}
The bean interface is annotated with @Local.
If I try to call myTestManager, I get the following exception:
WELD-000079 EJB JNDI: class de.crud.org $JBoss $ $ bean -jboss $ : ID = "VFS: $$$ USR $ $JBoss $ $ $ $ $" -SessionBean-TestManagerBean _ $$ _ WeldProxy
.