Please help me out with this then: Below are two persistence.xml files which are each within an EJB3 archive within an EAR. Aside from this file, the contents of both EARs are identical. Am I missing anything?
The deployment scenario in which I've made the most progress is:
Two EAR files each with its own copy of:
1. a WAR (JSPs, Servlets)
2. a skeleton EJB3 archive which contains only a META-INF/persistence.xml and no classes
3. a helper JAR file.
Altogether, I deploy three items to JBoss at the same time. Both EARs, and a full EJB3 archive with only the entity and session classes and no persistence.xml.
Everything deploys without any problem. However, when I try to access either EAR from a browser, the datasource both end up connecting to is the default hypersonic database which comes built-in with JBoss.
Am I messing up on the persistence.xml deployment descriptors somehow?
I'm sorry if my questions are confusing. I'm only an intern trying to do all this
