wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question on EJB 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 "Question on EJB" Watch "Question on EJB" New topic
Author

Question on EJB

veena madhukar
Greenhorn

Joined: Jan 19, 2006
Posts: 29
When would you use the DAO patterns in regards to a stateful session bean?

a> When using BMP to reduce the dependence on underlying datastore.

b> You would not use DAO with Stateful session beans.
Ricardo Ferreira
Ranch Hand

Joined: Feb 13, 2006
Posts: 156
Originally posted by veena madhukar:
When would you use the DAO patterns in regards to a stateful session bean?

a> When using BMP to reduce the dependence on underlying datastore.

b> You would not use DAO with Stateful session beans.


Choice A is the correct answer.

There are time that you need to access BMP entity Beans by an facade represented by an Stateful Session Bean. When using BMP, it is a very good approach use the DAO pattern to reduce the dependency between the beans and the underlying datastore.


Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
 
GeeCON Prague 2014
 
subject: Question on EJB