• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Revisiting Local Entity Beans vs. DAO for read-only functions

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

Information posted on Javaranch seems to suggest that DAO is better than Local Entity beans for read operations even without their remote invocation overhead.

However, a valid point was also made out that changing a table structure can lead to a change in CMP mapping and DAO SQL.

Could some one throw more light on the performance difference between the two considering the typical (search flight..) read operation(s) of the assignment as a context. Is the performance difference too pronounced to over look the reduced maintainability that may come as a result of using DAO's as well?

Thanks,
Jatin
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jatin,

DAO versus entity beans is an interesting subject.

One good thread about this subject is at: https://coderanch.com/t/149754/java-Architect-SCEA/certification/DAO-SCJEA-Assignment

Regards,
Dan
 
Jatin Sutaria
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it is. Thanks for the link.

As of now, i am inclined to have a SLSB invoke DAO to implement 'Search Flight' function. So i can have Segment/Flight/.. as simple Java structures rather than entity beans.

Jatin
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jatin,

I think we all agree that for a large search we should use a DAO and not make EJBs part of it.

Regards,
Dan
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic