WHile reading more and more about these two from various website and Sun's pattern site , i find they are doing mostly the same thing . That is sitting between the client and the different Business objects and hiding the complexity , coupling involved dealing with different business objects.They may use service locator inside them to look up remote object/jndi lookup.
Thanks if someone could clearly demark these two patterns . Thanks
I would like to add one more to this: Service locator Reading HFSJ,I am getting confused between Service locator and business delegate. Seems like there is very minute difference between these three.
Can anybody throw more light on it???
regards, sarang bharambe
SCJP 1.4 (86%)<br />SCWCD 1.4 (86%)<br />----------<br />If You dont succeed at first time,call it Version 1.0 !!!
posted 14 years ago
Service Loacator is used in lookup for services like JNDI and other factory resource. It only help to locate the resources and create the initial context of these resources. It can cache the located resources for future use. Other work is handle by bussiness delegate /other pattern including handling of business exceptions.