• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

A Question to Chris and Ramesh

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris/Ramesh,

Can you please explain me when we really go for using DAO.I heard that DAO's can be written independent of the Database(s) that we are using in our project.The Business object will access the DAO's.The DAO's extends the DAO Factories where database configuration will be there.Hence I guess only for multiple database support or Database independent queries can be handled using DAO's.Please correct me if I am wrong.

By using EJB CMP itself we can achieve the same task and also we can avoid the overhead of writing the JDBC code.

Hence my doubt is when we really go for DAO's and when EJB's.

Thanks a lot.

Waiting for your reply in anticipation.
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ramesh and Christopher have written a book on J2EE Security patterns and not J2EE patterns. If you want to discuss about the book ,particpate and win the book please visit Security forum.thanks
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
But the link from my Personal Mail Id came here only.Hence I thought this is the forum for discussing that.Sorry for the inconvenience.

If not Ramesh or chris,Can anyone explain me about my Query.

Thanks a lot
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DAO: Used to create a separation from client(+controller) from actual database access.

EJB: Used for stateful or stateless business logic execution. It is possible that your EJB calls a DAO to get things done(may be via a command object)
 
reply
    Bookmark Topic Watch Topic
  • New Topic