Hi JiaPei,
Thanks for your clarification.
I understand what you've mentioned.
So, what I'm trying to do is to use Client to reference Entity A through Entity A's remote reference and Entity A in turn reference Entity B through Entity B local reference.
Both Entity A and B are CMP and I'm trying to get their relationship managed by the container as well.
But the good news for me is that I have managed to get it working.
The example in the "EJB" book is corrected, just that the table created does not match the code of the AddressBean causing the RollbackException.
So, what I finally did was to
test the bean separately and get it working by using a SessionBean to invoke them individually.
After I corrected the AddressBean problem, I managed to get the CMR working too.
Just for anyone who is beginning in CMR.
If you need a example on CMR for J2EE-RI, you can e-mail to me for a VERY simple example.
But at least it works for me to get my understanding right.
And thanks for the replies to my post.
Cheers.
Han Ming