Hi Tony, I've not done this before, but pretty sure you'll need two DataNodes (to manage the two DB connections, one DB per node) and two DataMaps (one attached to each DataNode). Put the relevant Java classes/etc in the proper DataMap and Cayenne will then handle the routing for you. (Cayenne determines which DataNode to use based upon the Java class/package that is contained in each DataMap.)
BTW, which version of Cayenne are you using? mrg On Thu, Dec 7, 2017 at 1:50 PM, Tony Giaccone <[email protected]> wrote: > What's the general technique for using multiple data sources with a cayenne > project? > > I want to read from one table, and then use that data to collect data from > a second database, and validate certain values. > > Anyone have a specific example of this kind of work? > > > > Tony Giaccone >
