wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes servelets in place of  ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "servelets in place of  ejb" Watch "servelets in place of  ejb" New topic

servelets in place of ejb

mah kumar

Joined: Feb 05, 2004
Posts: 22
We know servelets are java server components that can be used as a middleware...
Same is the case with EJB....

I would like to know where servelets has to be used and where EJB...??
also please get me the advantages and disadvantages in using them...

thank you
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
This is covered in every book on J2EE -- I'd refer you there for details. In short, Servlets (with JSPs) provide the graphical front-end of a Web Application -- what you see in the browser. EJB's run the business logic of your application -- handling things like persistence and transactions. They are really nothing alike.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
I agree. Here's the link: http://aspose.com/file-tools
subject: servelets in place of ejb
It's not a secret anymore!