The only sinilarity between JavaBeans and EJB is both are components.
But EJB is deployable component and java bean is development component it can't
be deployed on a server
EJB is meant for inter process and Java beans are ment for intra process.For
example a Button is one java bean ie development componet that can be included
in any of your GUI
Consider a Customer bean which is deployed in a server.It can be accessed from
anywhere.
and ejb are distributed components and jaba beans are not distributed
ejb are used for bussiness logic and server side of applications
and java beans are gui components