• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are you really using entity beans in Part II?

 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this is a Sun exam, and they would probably like to see the use of entity beans to represent Customer and Flight, but in reality, entity beans, especially read/write EJB's, are not a good idea for a production environment; they are simply too heavy in weight in nature. I know because I implemented them at my company. We thought that by using read-only and non-transactional entity beans we would increase the response time, but we observed a considerable decrease in performance instead, so we decided against them.

Did anyone NOT use entity beans and pass part II? This would be a good indicator as to how anal the examiners at Sun can be! Tee-hee! :-D

SAF
 
Harish Ramchandani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Safrole,

For read-only and non-transactional data, use of "Fast Lane Reader" pattern, that uses DAO instead of Entity Beans, is recommended. I agree, use of entity beans, in such scenarios, is not good design solution and can incur performance problems.
You may find more information about Fast Lane Reader here http://java.sun.com/blueprints/patterns/FastLaneReader.html

Best Regards,
- Harish
http://www.harishramchandani.com
 
Harish Ramchandani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However, you may find couple of places where you should use Entity Beans in Part 2 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic