aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Are you really using entity beans in Part II? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Are you really using entity beans in Part II?" Watch "Are you really using entity beans in Part II?" New topic
Author

Are you really using entity beans in Part II?

SAFROLE YUTANI
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
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

Joined: Mar 18, 2004
Posts: 65
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

Joined: Mar 18, 2004
Posts: 65
However, you may find couple of places where you should use Entity Beans in Part 2 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Are you really using entity beans in Part II?
 
Similar Threads
Part II - Entity Bean or DAO?
can we insert datas in to the database using stateless bean??
Use of DAO in SCJEA Assignment
SCEA 5 Part 1 -- Passed
Entity Beans and DAO