This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 for other WebSphere information.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: servelets in place of ejb
It's not a secret anymore!