title: persistence.xml in EAR and JAR file. Which to use
body: <p>I have an application that is packed in a JAR file (my EJB files). This is then packed in an EAR file.</p>
  
  <p>Both of these packages have their own <strong>persistence.xml</strong> file. Which one does glassfish (or any server for that matter) use? Does it look at both files? Or only one of them?</p>