• 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

Entity Beans vs Java classes and Servlets

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,
have been looking at EJBeans for a project I just got to see if they should be used. Got what is probably a simple question but can anyone tell when one should use entity beans and when should not. I can see how they work alright (and the obvious benefits of Container Managed Entity Beans) but am not sure on what occassions they should be used, especially Bean Managed Entity Beans instead of just using a class and some servlets to do the job with the DB. The same pretty much goes for session beans, could servlets just do the business processes such as validating.
Cheers in advance
Williery(total novice)
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll find plenty of discussion regarding this question if you do a search on this forum.
In short, most projects could do better without entity beans. Unless you need cluster-wide caching or something similarly complex, straight JDBC from plain old Java classes will do just fine.
 
reply
    Bookmark Topic Watch Topic
  • New Topic