Re: Difference between Java Beans and EJB
Wednesday, March 21, 2001 09:30 AM
Really, the name is the only thing these two have in common. A JavaBean is primarily used to be a plug-n-play-type addition to some component, for instance a spreadsheet-like JaveBean that you can just plug in to your GUI. Toolbars on IDE's are good examples of JavaBeans.
EJB's are server-side components which handle accessing DB's. EJB's are deployed/managed within an EJB container and accessed through an EJB server. The EJB server/container handle transactions, security, pooling, etc.