Java EE, injecting one EJB into another EJB?

Your first example should work if your private field is declared using the interface, like this.

Your first example should work if your private field is declared using the interface, like this: @Stateless public class MainEJB { @EJB private HelperInterface helper; // changed this } @Stateless public class HelperEJB implements HelperInterface { } @Local public interface HelperInterface { }.

Thanks, it does work. Why is that so? If a another EJB is injected through a no-interface view, it must be referenced by one of its interfaces if it implements any?

– Dario Jun 15 at 8:57 1 @Dario Just like Arjan Tijms said in his post. – deltaforce2 Jun 15 at 9:08.

A no-interface view is only created when the EJB does not implement any (business) interface. You can explicitly declare that you want a no-interface view by using the @LocalBean annotation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions