There are 2 service locator classes in the petstore. One is for the ejb tier the other for the web tier. Why cannot there be just one used for both tiers?
Certifications: <br />scp2, scea, scwcd, WL7.0, CISSP, XML
IMHO Could be web and ejb containers are in different JVMs. JNDI lookups are slow to begin with and having two ServiceLocators eliminates a bit of latency.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.