Just re-validating a design requirement for BMP that I think
I read somewhere:
Dependant objects behind an Entity that uses DAOs for each
parent and child objects.
- for container managed transactions to work, must all DAOs
use the same Connection?
I.E.
myBeanMethod (,,,)
{
Connection con = null;
try {
// conn pool managed by J2EE container
// and data-sources.xml
Connection con = getDBcon();
doDAOforTableA ( ,,, con);
doDAOforTableB (,,, con);
} finally {
freeDBcon (con);
}
}
Thanks,
curt
