This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb or servlets

 
shawn kennedy
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to know when is it advantageous to use servlets over ejb and when adv to use ejb over servlets.Also wht r the advantages of ejb over servlets and servlets over ejb
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB and servlet are totally two different things.
You make use of EJBs to implement your business logic and use servlet to process HTTP request.
Servlet makes use of EJB to process request and to applies biz rules as per application need.
Biz logic can also be put in servlets and in normal beans but EJB provides implicit facilities for enterprise applications like handling of transactions, concurrency, security, load balancing etc. If one wants to implement these facilities in normal application[using only normal beans] then one has to explicit write code for these facilities.
Please correct me if I am wrong.
[ July 16, 2003: Message edited by: Ravish Kumar ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic