aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes is EntityBean a MUST? 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 "is EntityBean a MUST?" Watch "is EntityBean a MUST?" New topic
Author

is EntityBean a MUST?

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello All,
can folks, specially the ones who took this exam successfully and all tell me if the EntityBean is a MUST for the Part II? What about using servlets, POJOs, Session Beans and an ORM in place of Entity Bean?

Please let me know what your thouths are on this?
Thanks.
B.
Ricardo Ferreira
Ranch Hand

Joined: Feb 13, 2006
Posts: 156
Brian,

Entity beans are great solutions to handle automatic persistence transactions and specially, to handle thread synchronization at the entities.

There are many custom architectured based on pojos and Stateless Session Beans (Which means that they use the Fast Lane Reader and DAO patterns together). This kind of architecture works fine for applications where 80% of the time just read only access are made.

But, for applications that is going to be accessed for handred users at the same time (an portal or e-commerce for instance) a over synchronization control are mandatory. Entity beans are good solutions for that case because the ejb container takes care this problem perfectly.

The only bad thing related to Entity beans (I mean, EJB 2.1 or prior) is that the curve line to implement this solution is too huge and are not good for maintaince. Another issue is that entity beans 'must' be used with local interfaces (to achive better performance at pass values by reference) but this approach implies at a extra implemention with facades with remote interfaces and business delegates at the client side to handle the remote interfaces.

My advice is: If you decide to not use Entity Beans, pay attemption in thread synchronization of your entities because it is a very importante non functional requirement of any application.

Best Regards,


Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
I fully agree with Ricardo. Entity beans implement a caching mechanism for the lowest level of the DB. In its simplest case, each bean caches information about a row of a table. Now, every caching mechanism makes the architecture and programming more difficult, as it introduces another dimension into the code - time, and the implementation, debugging and maintenance is therefore more complex. However, considering the limitations of current databases, where the burden is all on one server, caching solutions are quite often needed as in our assignment.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Deiveehan Nallazhagappan
Ranch Hand

Joined: May 27, 2002
Posts: 33
I am preparing for part 2.
Since this exam is not on JEE 1.5 you can choose entity beans.

But please be aware that there are no entity beans in EJB 3.0 (JEE 1.5)


Deiveehan N - SCJP, SCWCD, SCBCD, IBM-484, SCEA
You may be in the right track, but if you sit there, you will get run over !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is EntityBean a MUST?