Hi there,
I have done some more digging and it appears that the current implementation
has a problem on MacOSX. I implemented my own Persistence Provider and if
I do the following in its constructor it successfully finds it.
public MyPersistenceProvider() {
System.out.println("Whatever");
}
If I comment out the System.out.println statement it cannot find this Persistence
Provider. Looking at the code of the Persistence class I think it has to do with
a threading issue. Can someone confirm this?
Note my JUnit tests call Persistence.createEntityManagerFactory(String persistenceUnitName, Map properties)
(see
http://fisheye5.cenqua.com/browse/glassfish/persistence-api/src/java/javax/persistence/Persistence.java?r=1.6#l48)
Kind regards,
Manfred Riem
mriem_at_manorrock.org
http://www.manorrock.org/
Founding Java Champion