August 29, 2009 at 9:10 PM
first of all dont compare java bean with enterprise java bean because enterprise java bean is a techonology where we can develope business logic of the application.java bean is a ordinary java class using which we can develope business logic but in java beans programmer must manually implement middle ware services like security,transaction,connection pooling this becomes extra burden for the programmer where as in ejb these middle ware services are built in programmes can directly use this middle ware services.in java beans business logic cannot accessed by remote client where as business logic kept in ejb can be accessed by remote and local clients...........
August 31, 2009 at 4:41 PM
Difference between Java Bean and Enterprise Java Bean:
1)Java Beans is a Client side program which provide a format of general-purpose components. But Enterprise Java Bean is Server side which provide a format of highly specialized business logic component.
2)EJB is designed to work in distributed environment using rmi/iiop protocol where as Java Bean is standalone and works only in the same JVM.
3)EJB container provides implicit services to EJb in which it is deployed but in Java Bean we need to code all these services.
4)Java Beans are reusable non deployable components but EJB are reusable deployable component.
February 5, 2011 at 9:48 AM
Java beans are reusable components where are EJB is used for building server side components.