Hi , Please tell me about the difference between Beans and EJB.which one is best?
The problem is not which is the best and which is better It is the requirement of the project, If the requirement
tells u that simple web based appl is sufficient then u don't
need to go to EJB at all.
Both JavaBeans and EJB are for developing component based
applications. Java beans are for the client side.
EJB is for the middle tier where middleware services are
exploited by the EJB components.
In short javabeans are reusable components developed
for the client side and can be used with JSP/servlets.
EJB components are serverside components.