Both reduce Network traffic, but not the same way. Transfert Object reduce it by sending a bundle of data in one remote call, instead of having several small remote call. Service Locator reduce it by "caching" high-cost resource (like JNDI resource).
The answer is definitely Service Locator to me. [ June 06, 2008: Message edited by: Olivier Ledru ]
I pass SCJP5.0 yesterday, with 81%. I study about 1 month with the Sierra/Bates book and the free examulator and inquisition test. And now, see SCWCD...
Thanks for your support ;-) [ June 06, 2008: Message edited by: Olivier Ledru ]
In the real life, your beans have getter and setter, and your class is thightly encapsulated, but using the setter of your bean, you can change its internal state, so your bean has not to be immutable. Actually, it generally isn't immutable.