Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Part 2 - DAO & CMP

 
Solomon Raz
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm somewhat a novice to J2EE. I don't know if DAO's can be used in a CMP based design. I'm planning on using DAO's for searches (such as flight search, seat availability search) etc and CMP entity beans for creating the itinerary.

Is it out of the norm to use CMP entity beans + DAOs?

Solomon
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use:

1. SLSB + DAO for Search operations

2. CMPs for persistence.

CMP + DAO is not a valid combination because code for CMP is generated by the EJB Container at the time of deployment so how would you plug in your DAO with CMP.

3. If you want you can use BMP + DAO for persistence.

Hope this helps
Deepak
 
Solomon Raz
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That helps Deepak. Thanks.

Solomon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic