aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Entity Beans vs Java classes and Servlets 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 "Entity Beans vs Java classes and Servlets" Watch "Entity Beans vs Java classes and Servlets" New topic
Author

Entity Beans vs Java classes and Servlets

Will Reilly
Greenhorn

Joined: May 09, 2003
Posts: 24
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)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity Beans vs Java classes and Servlets