This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB + DAO usage question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "EJB + DAO usage question." Watch "EJB + DAO usage question." New topic

EJB + DAO usage question.

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi folks!! That's me again!

See this :

- EB (BMP) + DA0 = OK, we do need to write our queries.

- EB (CMP) + DAO = NO, because we don't need to write queries anymore.

And what about these other options :

- SLSB + DAO = is this ok or is there any drawback here?

- SFSB + DAO = Why not? because this kind of bean keeps conversational state and shouldn't be using DAO ? is that?

Tks in advance again ;-)

SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Session Bean using DAO is OK.

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
I agree. Here's the link:
subject: EJB + DAO usage question.
jQuery in Action, 3rd edition