Thanks a lot for your response.
I wanted to try your solution but I have a problem to detach entities from the entity manager context.
When I get entities from the database, I'm in a stateless EJB. The entity manager context and the transaction context are set up automatically.
I didn't find any solution to detach entities. The only way I found is to make a copy of entities.... Is there another solution to detach entities ?
[Message sent by forum member 'nlsbo' (nlsbo)]
http://forums.java.net/jive/thread.jspa?messageID=322691