Hi, this may be a trivial question but I was unable to find enough documentation on it to make it work.
I have 2 DBs sitting on different hosts. I need some entities to be persisted in database A and some others to be persited in database B. I have one SLSB which needs to run querys on entitys persited in A and B.
Would be nice if somebody could either tell me in a few words what how I could do that or maybe point me to documentation on this issue.
you'll need 2 persistence units defined.