javax.persistence.Persistence is intended for obtaining an EntityManagerFactory in a Java SE context.
The JPA 2.0 spec says that Java EE containers [i]may [/i]but do not [i]have to[/i] support it (JSR-317 section 9.2).
I don't know if Glassfish supports this usage.
Best regards,
Harald
[Message sent by forum member 'hwellmann']
http://forums.java.net/jive/thread.jspa?messageID=483315