Wildfly 8.2.0
I have a Stateless
EJB and an interface.
@Local
@Stateless
public class Bean implements IBean{
...
}
@Local
public interf
When you want to inject a bean whether by EJB (using @EJB
) or CDI (using @Inject
) container you declare a variable with interface type. Concrete implementation of declared interface is found by a container during application deployment. In your example the problem is not with annotations but with a declared type being injected (Bean
instead of IBean
).