I have one .jar with a lot of entities and a persistence.xml file with two "persistence-unit".
In production environment, there will be a lot of servers on different sites with the .jar.
In the future, how can I "extract" and isolate the persistence.xml file from the .jar to update only the .jar file and not the persistence.xml file to maintain the config of the persistence-units ?
Thanks in advance.
Just another way to ask you my question :
I have one .jar with all my entities shared by some .ear.
I configure the persistence.xml file in the .jar to bind to the good datasources.
So, in the future, how can I update the .jar to keep the configuration in the persistence.xml ? Is it possible ?