I am browsing Pet Store 1.3.1 from Sun. Any body can give me a reason why they use one service locator for web tier and the other for Business/EJB tier. The only difference I noticed is the web tier service locator "cache" the references.
SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
posted 13 years ago
Could it be because of (some of) the following: a) they wanted to demonstrate two different ways of implementing the service locator pattern. b) they didn't have the time/interest to write a configurable service locator (cache on/off) I'm just guessing here...