The example above uses Persistence.createEMF() so it might not go through the glassfish connection pool. Can you change your test to lookup/inject EMF instead (and use UserTransaction to manage the transaction boundaries)?
thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=292728