File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

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 for other WebSphere information.
I agree. Here's the link:
subject: servelets in place of ejb