OSGI JPA Persistence - Handling multiple model bundles persistence.xml -


in project have persistence bundle perform create/update/delete operations , multiple model bundles.

persistence bundle:

  1. persistenceservice.java - exposed service.
  2. persistenceserviceimpl.java
  3. persistence.xml - contains: a: jta-data-source details b: dialect properties.

now have multiple model bundles have used annotations declaring entities.

my query is, how can specify different model bundles details in above mentioned persistence bundle's persistence.xml. can maintain single persistence.xml file , "persistenceunitinfo" not repeated.

is possible? or there other best practices?


Comments