Difference between Beans and EJB


Web tier: servlets, JSP, Web frameworks: Difference between Beans and EJB

  1. Difference between Beans and EJB (1 messages)

    Hi , Please tell me about the difference between Beans and EJB.which one is best?

  2. Hi,
      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.