PDA

View Full Version : DAO and data source



newbieguy
Feb 10th, 2006, 12:25 PM
I have 3 different datasources that my application needs to connect to. I have designed a system based on domain model that requires a single DAO object to access 2 of those data sources as part of a single transaction. However, I am not sure how to have a DAO object access multiple data sources. Any pointers if its possible, and if not, what is a good way to design such a scneario (Have one DAO per data source??) ?

Thanks

wpoitras
Feb 10th, 2006, 02:22 PM
Yes, I think one dao per DataSource is a good way to go.

newbieguy
Feb 10th, 2006, 02:27 PM
Thanks wpoitras !