title: JPA using alternative "persistence.xml"
body: <p>I know that with the instruction:</p>
  
  <pre><code>Persistence.createEntityManagerFactory("persistence-unit-name");
  </code></pre>
  
  <p>The JPA persistence mechanism reads the "persistence.xml" file, looks for the persistence unit called "persistence-unit-name", and constructs the EntityManagerFactory based on it.</p>
  
  <p>My question is, how can I force JPA to <strong>take a file different from "persistence.xml"</strong>?? for example, "persistence-test.xml".</p>