6 Replies Latest reply on Feb 16, 2006 4:55 PM by Chris Baxter

    Across the PARs

    justinb Newbie

      How should I do this...

      I need to create an EAR with two (or more) PARs in, hence, multiple PersistenceContexts (or that is how I understand it). But the trick, that doesn't seem to work, is to have Entity relationships between PersistenceContexts.

      Is this possible?

      If so, how do I do it properly? I have tried to, by just making two PARs, but the deployer doesn't seem to be able to find the Entities in the other PAR. Since that didn't work, I have resorted to putting them all into one giant PAR again. But this idea of @PersistenceContext(unitName="??") is nagging that there is a way to do this.

      Thanks in advance.