I have a Spring based app where another programmer is using JPA's persistence.xml file to define the setup of hibernate and to define the entities that are being persisted.
The app is using Spring's java configs so there is almost no xml in it. I already have Spring generating a LocalContainerEntityManagerFactoryBean for hibernate. Reading the LocalContainerEntityManagerFactoryBean doco it sounds like I can simply migrate the persistence.xml file's setup into the java methods that creates the it and everything should just work.
The app is running on JBoss and my question is whether JBoss actually requires the persistence.xml file and what it does with it?
Reading (A lot) of web pages and the JPA specification it appears that the JEE container has to use it, however we are Spring based even though we are running on JBoss 8. SO I'm thinking I can run without persistence.xml and simply use Spring Java config whilst still being fully JPA complient.