It's JPA provider specific (and closing a connection before it had been committed might not be a good idea in a Java SE app).
You might be better off adding a Log entity ;).
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=229417