In a project (war), I am using an EntityManager defined using a persistence unit. The definition of this persistence unit is made in a library that is packed as jar and installed on in Glassfish's libs. This lib is not included in the war.
Since I am using the persistence-unit defined in the library's persistence.xml, I have to copy it into my project.
I prefer not having to do this. Is there a way, such that I don't need to copy this persistence.xml and just reference it somehow in the library or anything like that?