When you use remote calls, the parameters and return types are serialized/deserialized. So
your call to the persist method on the bean from the client cannot expect the
"country" parameter to be passed by reference.
Change this in client:
countryRemote.persist(country);
| countryRemote.flush();
| return country.getId();
to
Country persistedCountry = countryRemote.persist(country);
| countryRemote.flush();
| return persistedCountry.getId();
i.e. work on the returned object.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234377#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...