• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCEA Part 2 v1.4 Exam (Entity Vs SLSB + DAO)

 
Jiten Taluja
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on old SCEA Part 2 exam.

Any suggestions - is it a good idea to have fetch, update and save using SLSB + DAO design pattern and not to make use of Entity beans at all?
[ August 16, 2008: Message edited by: Jiten Talujaa ]
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are thinking about DAOs, which probably implies jdbc statements with sql, have you considered BMP ? Maybe, as a twist, BMP that delegates to DAO's ?
Can you make a case saying that you really need dao's based on some requirement. Thinking about the fast lane reader pattern here ...
Just a few brainstorms on my part ...
 
Jiten Taluja
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ronald,

Can you throw some light or tell me a good reading about difference between SLSB + DAO Vs BMP + DAO. Because in my design I considered SLSB + DAO and the reason for that was, I have done the same implementation in some of my projects in hotel industry and did not face any any issues but rather noticed that the performance was great (included the SQL queries are well optimized)
[ August 16, 2008: Message edited by: Jiten Talujaa ]
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you I also did some implementations in the supply chain industry using slsb + dao with good performance, so it is certainly a working solution. The difference between SLSB + DAO vs BMP + DAO is that when using bmp entity beans + dao, first of all, obviously, you are seperating the actual persistence code from the rest of the entity (bean), but more importantly, you still have the possibility to migrate (more easily) to CMP should you want to "simply" by removing the dao layer :-). This could be an option, say when upgrading to a newer release of the J(2)EE platform with better support for CMP/EJBQL or if you should want to use JPA/JPQL instead.
 
Jiten Taluja
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ronald, I clearly understand the way you have explained the usage of BMP

I think to make it simple for now, I will go ahead and use DAO instead.
[ September 04, 2008: Message edited by: Jiten Taluja ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic