• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ejb or servlets

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic