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