aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Need your opinions on this ! 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 "Need your opinions on this !" Watch "Need your opinions on this !" New topic
Author

Need your opinions on this !

Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
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 !


SCJP, SCWCD, OCMJEA, OCEEJBD, OCEJPAD, TOGAF® 9 Certified, OCEJWSD
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

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 ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
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

Joined: Feb 24, 2006
Posts: 6657
    
    5

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

Joined: May 18, 2011
Posts: 65
Does this also apply to Stateful session beans as well ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need your opinions on this !
 
Similar Threads
SCEA Part 2 v1.4 Exam (Entity Vs SLSB + DAO)
JPA and DAO's
Who didn't use SLSB for DAO?
JPA and DAO
DAO Layer