users@glassfish.java.net

Re: TopLink thread deadlock re UserTransaction.commit() in message-driven

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Nov 2007 10:35:45 PST

What do you mean when you indicate that you update the primary key? Does an object exist either in the DB or in your application with a certain primary key and then have that primary key changed? If so, that is likely the reason for your problem. Changing the identity of an object is simply not allowed in JPA.
[Message sent by forum member 'tware' (tware)]

http://forums.java.net/jive/thread.jspa?messageID=244122