Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Large finders on entity beans refactored

Pradeep Kumar

2003-09-15


Large finders on entity beans refactored

I totally agree. We are told that if we read a large amt of data via entity beans, there will be too many entity objects in ready state. One can argue, that they will be the cached data for subsequent reads (lets’ say via find by primary key), however, to avoid dirty reads, the container calls the EJB load method, which defeats the purpose of caching

 

-----Original Message-----
From: Katz Guy [mailto:Guy_Katz@ICOMVERSE.COM]
Sent: Sunday, September 14, 2003 12:12 PM
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Large finders on entity beans refactored

 

Hi;
Going through the core patterns book.
There is a bad practice dedicated to not using finder methods when large result is expected but use a DAO instead.
My understanding is that the authors want to have a 'dual interface' for access to the same data, Modeling the data itself as entity beans yet using DAO for the search. Is this correct?

If so, wouldn't this be in contrast to resusability? Also, isnt this a good place to put your money on vendor container optimiations?

_______________________
Guy Katz
Software Architect, CAP-IFS
Comverse
guy.katz@comverse.com
+972 3 7663686

DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.