• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jatin Sutaria
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jatin,

DAO versus entity beans is an interesting subject.

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

Regards,
Dan
 
Jatin Sutaria
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic