Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Loading multiple persistence.xml files

I have a setup where multiple project come into a shared classloader.  Each project can have its own model files and thusly its own persistence.xml and orm.xml files.  When I create an EntityManager, I see in the logs that each persistence.xml file is found (3) and each orm.xml file loads with the expected entities.  When I try to query or persist using this EntityManager, only the entities from the lastly loaded persistence.xml is found.  Am I loading this correctly?  Am I trying to access things incorrectly?


Back to the top