title: where does Persistence.createEntityManagerFactory() look for the persistence unit?
body: <p>I am using eclipse.  I am trying to debug a failure to find the persistence unit that is indeed located in the directory structure of my eclipse project.  </p>
  
  <p>Where does <code>EntityManagerFactory javax.persistence.Persistence.createEntityManagerFactory(String persistenceUnitName, Map properties)</code> look for the persistence unit?  </p>
  
  <p>When I ask where it looks, I mean all the possible resources that could get searched, including eclipse configurations, properties in persistence.xml if the file is found, resources searched by included JARs, etc.  To explore how this works, I am executing a test program by right clicking on a Main.java class located in the root (<code>src/main/java</code>) of an eclipse project.</p>
  
  <p>The answer might help me figure out how to configure the eclipse project so that <code>EntityManagerFactory javax.persistence.Persistence.createEntityManagerFactory(String persistenceUnitName, Map properties)</code> can find the persistence unit.  </p>