Rick,
Yes, if em.flush() fails, it'll cause current txn to be marked for rollback. Are you suggesting to run a query in the em.flush() catch block to identify possible problem? I think this should work.
Is PersistenceException propagated to the client? I think it would be replaced (wrapped into) another exception by the container.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=234310