users@glassfish.java.net

Re: Unique Constraint Question

From: <glassfish_at_javadesktop.org>
Date: Thu, 06 Sep 2007 17:58:59 PDT

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