Because this is the spec.
spec of whom?
I have created a REMOTE object. I am trying to retreive a collection of REMOTE objects and trying to add the create REMOTE object to that collection.
Then why is EJB Container expecting the object to be LOCAL.
loubyansky, I am surely missing your point but you can help me understand. Any pointers.
The EJB spec. You are trying to add a remote object to a CMR collection (local objects).
Thanks a lot, loubyansky.
May i know then how should i proceed with my development. I have a collection of entity beans. Some are remote and some are local. I have got them in heritage from old team ;-)
I have started adding CMR fields to the relations.
How do i decide which of them should be moved on to LOCAL? I might end up converting all my entities to LOCAL. I can foresee lots of work on my part but this time i will do it for good.
All CMR fields must be Local, CMP fields can be either.
It's a good practice to use local where possible.