 <p>Well, you got the answer but maybe couple of notes</p> <ul> <li>why won't you inject your bean directly to <code>PostController</code> with <code>@EJB</code> annotation?</li> <li>If you develop a new project, use <code>CDI beans</code> instead of JSF Managed Beans, they will soon get deprecated (and whole Java EE stack is slowly moving towards using CDI everywhere)</li> <li>then you can get rid of <code>@ManagedProperty</code>, every bean (which will basically be any class in your application) will get injectable with <code>@Inject</code> annotation. Same thing applies for EJBs, so CDI kind of unifies the access to most types of beans. </li> <li>some basic CDI + JSF tutorial <a href="https://netbeans.org/kb/docs/javaee/cdi-intro.html" rel="nofollow">here</a></li> </ul>