Question: what is the difference between java beans and ejb?
Answer: An EJB is a nonvisual, remote object. JavaBeans are intended to be local to a single process and are primarly intended to run on the client side. Although one can develop server-side JavaBeans, it is far easier to develop them using the EJB specification instead. ... EJBs are of two types - session beans and entity beans.