Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Need your opinions on this !  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I've read this article about using DAO layer with JPA or not, and I want to share it with all of you.

http://jvarun.wordpress.com/2010/06/30/dao-with-jpa-and-service-layerejb3-session-beans-or-not/

So what do you think, use DAO layer or not ? I would appreciate it if some people who passed the exam give us their feed back.

Thanks !
 
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This statement is not clear

There is a lot of discussion on internet about whether to have DAOs or not with JPA and service layer or with session beans (which is the service layer).



Does that mean the debate is about

DAO + JPA ?
DAO + JPA + Service ?
DAO + JPA + Session bean ?
DAO + JPA Vs EJB3 ?

Some of the arguments also seem flaky. But I think the point of the article is to promote DAO usage and abstract it from a service layer.

What matters more is your opinion. Why do you think DAO + JPA is bad ?
 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meaning: Some use SLSB as DAO, and some add another independent DAO layer in addition of using the SLSB.

SLSB(service+DAO) + JPA vs. SLSB(service) + DAO + JPA
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keeping the DAO out of the component helps improve re-usability. I dont see any reason why the DAO should be opaque to others
 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this also apply to Stateful session beans as well ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!