HI
JavaBean and Ejb both are component technologies.Java Bean have set of properties(setters and gettters) and Ejb have set of propeties(implements the serializable interface,Support the Rmi Technology).
But Java Bean will work in client side and server side.Java bean can work as a standlone(AWT class) and work as a serverside application(Implement the business logic).
But Ejb's work in ServerSide only.These are Build for Business Logic purpose.We can configure these components in any Ejb container.The Ejb can be used by many no of clients like
servlets,standlone,gui application.