I've JAR with EJB 3.1 that I need to use in WAR. Both JAR and WAR are deployed separately on same JBoss (AS 7.1). When I inject EJB in one of the CDI beans in WAR I got this error:
From my current point of view the @Inject doesn’t see the EJB, but if I use manual JNDI lookup (from WAR) is possible for me to get instance of this bean. Is possible to inject EJB from another JAR with @Inject annotation?
Class in WAR (CDI Bean) which @Inject EJB from JAR:
EJB class in JAR which I'm trying to @Inject with local and remote interface: