I have file entities1.ejb3 that contains several annoted entities. I have another file, entities2.ejb3 that contains more entites. I need them to be deployed within the same persistence unit.
I thought that if I put both .ejb3 files within the same ear, then put my persistence.xml in the META-INF of the ear, then it would be able to find all of my entities. This does not seem to be working.
Does someone know how to get this to work, or can someone point me to some documentation or examples? I have read the spec but apparently i am not getting it.