posted 18 years ago
Hi sagar,
If you store the object as bean instance state, which is passed in argument of local interface method call, you can modify the bean state without call beans method. Because the local interface method take arguments by object reference, after the method call, you can modify the objects which impact on bean's instance state.So it hurt the security and beaness, etc.
So we have to avoid the above,
That implies
In general, the references that are passed across the local interface must never be stored as part of the state of another enterprise.
So that spec also another one restriction, we can use that objects in Chain of method call occurenace. Other than this places don't use[beans state etc ].
These are points, i could understand.
Any other points as well as comments on my points also welcome.
Thanks & Regards
Kasimurugan (SCJP1.4, SCBCD1.3), Preparing SCWCD1.4