I have a data model and DAOs built using JPA annotations and I am using the hibernate implementation of JPA to use that model/DAOs within a JBoss container as well as in a standalone application.
To make that work I must maintain 2 persistence.xml files and a XXX-ds.xml file that overlaps one of the persistence.xml files. This is inefficient as well as error prone. I have searched high and low and tried many different things, but I am unable to consolidate so that, at the very least, there is no overlap.
Am I missing something, or is this just the way it is?
|