Yes, I'm aware of that. I only assumed this being Glassfish-related because it worked differently with EAR and WAR deployment (and EAR behaviour was perfectly correct).
I use the Spring way injecting the EM. I dont even use a persistence xml, I configure EMF via Spring.
[Message sent by forum member 'dyn' (dyn)]
http://forums.java.net/jive/thread.jspa?messageID=254136