users@glassfish.java.net

Re: JPA + webservice do not mix

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Jun 2007 13:43:30 PDT

Hi Ketan,

Does your entity reference another entity? Is this relationship marked with cascade=PERSIST?

In your standalone mode you most probably use the same extended EM, but in a web service you might be getting a different EM instance every time. You can check JPA in web services chapter of the Java EE 5 tutorial for solutions.

regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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