OK, I am still confused, as I am not seeing the problem here.
But this is what I am taking from it
You have a client, who is connecting to a server in a different JVM. On the client you create these POJO objects, then you have Remote EJBs being called. On the Remote
EJB, you have coupled your business logic and your Data Access object with EJB3 and your Stateless Session Bean. My first recommendation would be to decouple that code. Create a DAO class that uses the EntityManager to do the querying and CRUD.
Anyway, besides that point.
So the client creates this object, outside of an EntityManager, you send it to the server, and expect the server side EntityManager to persist it. Well that object is not being managed by the EntityManager at that point, it is considered the detached state. You will need to merge() the detached object into the EntityManager to allow it to manage it and then therefore after, persist it.
Mark