Please give a brief explanation regarding the difference between 'Servlets as a Session Manager' and 'Session Bean'.
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
Thanx for the response.