whatis the diff between ejb and servlet/jsp

Answer Posted / shilpa kapurkar

EJB is a distributed component model for developing
secure,scalable, Transactional and multi user component.
EJBs are reusable software units containing business logic.
EJBs allow separation of application logic from system-level
services thus, allowing the developer to concentrate on the
business logic.EJBs reside in EJB container. needs
Application server.
Servlets are serverside components involved in request
response process. JSP- Java server Pages an extension to
servlet technology. JSPs are text based documents involved
in request response process. at run time JSPs are converted
into servlets. servlets , JSPs resides in web container. one
can use JSPs for presentation, controller as a servlet and
business components can be easily managed as EJBS.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can one EJB be called from within another EJB?

725


What is stateless session?

735


What are stateless functions?

691


Is ejb be called from another ejb? If yes then how?

723


What is session bean?

709


What is the difference between message driven beans and stateless session beans?

720


Enlist the CallBack methods of Session Bean?

753


How can enterprise javabeans be accessed from active server pages?

753


Define Initial Context?

774


Define SessionContext ?

775


What is the difference between @requestparam and @pathvariable?

704


What are the limitations of using local object?

718


Can beans who are involved in transaction have 'passivation' process?

725


In what format is the conversational data written to the disk?

721


A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

726