Session Bean Vs Servlets

Discussions

EJB programming & troubleshooting: Session Bean Vs Servlets

  1. Session Bean Vs Servlets (2 messages)

    Hi,
     Please give a brief explanation regarding the difference between 'Servlets as a Session Manager' and 'Session Bean'.

    Thanx.

    Regards,
    Shibin

    Threaded Messages (2)

  2. Session Bean Vs Servlets[ Go to top ]

    how can you basically handle the resources in servlets, you have to take care about the time for closing the resources, if not the resources(like database connection) will be getting wasted in your servlet, but in the session bean if it is not needed so that it goes to passivation state it calls a ejbPassivate method where you can close the resources, and ejbActivate method. And one more thing is client can be a servlet, application, COM client, CORBA client. this is not possible in servlet. And method transaction attribute is taken care in the session bean. but not in servlet.

    These are some of the qualities of session bean

    bye
    muthu
  3. Session Bean Vs Servlets[ Go to top ]


    Thanx for the response.

    Regards,
    Shibin