I need some clarification. I know how to work with JSF and its corresponding session beans, but i am getting confused with EJB. What is the difference between the beans introduced with EJB and the session beans used with JSF (for ejb i know about the stateless/full session beans and entity beans, entity manager, etc.). What i just dont get is when to use EJB and when to use jsf beans. Aside from the entity beans, both the ejb stateful/less session beans seem similar to the jsf session beans. I've read about injection ejb's into jsf, but why not just use ejb in conjunction with jsf beans? I hope you can understand my confusion. Thank you.
I'm not sure what you mean by "JSF bean". Do you mean ManagedBeans or session beans? If the former, a ManagedBean is a web layer object. It does not provide transaction support and the other benefits of session beans. If the later, they are the same thing. It is common for JSF code to call a stateless session bean. Which is an EJB.