When the
Code:
HibernatePersistence.createEntityManagerFactory(String emName, Map map)
is invoked to retrieve an EntityManagerFactory instance, the Hibernate configuration is loaded from a persistence.xml document using the following snippet:
Code:
Enumeration<URL> xmls = Thread.currentThread().getContextClassLoader().getResources("META-INF/persistence.xml");
Is it possible, this doesn't work within an Oracle OC4J container? (When I just use
Code:
URL xmls = Thread.currentThread().getContextClassLoader().getResource("META-INF/persistence.xml");
, the persistence.xml URL is returned (but this can't be used when there are different JARs). The ClassLoader.getResources() just returns an empty enum.
I know this isn't really your problem, but I'm just mentioning it, because this would mean that your EntityManager implementation isn't really usefull on an Oracle App Serv.
Greetz,
Stijn