One of the
SCEA obj :
Identify costs and benefits of using intermediate data-access object between entity bean and data resource.
Differences / Advantages / benefits :
1.
JDBC DataSources can automatically pool and reused database connections for multiple clients.
2. DataSource objects can be stored in JNDI tree. If the Database type or location changes, we need to change only the single DataSource object stored in the JNDI tree.
But what are the disadvantages / costs associated with DAOs ? Can anyone elaborate on this. Thanks.