This content has been marked as final.
Show 2 replies
-
1. Re: Locator Design Pattern
davidsills Aug 4, 2002 10:37 AM (in response to a13519)If you're speaking of Service Locator pattern (and I think you are), and if I remember right, the idea was that the Service Locator would be a singleton (so at most a few copies scattered among the various classloaders), and retrieved using static methods, not JNDI. So there would be one call to JNDI per home per ServiceLocator per server start, as the Home interface stubs would be cached thereafter, potentially saving considerable time. Another option might be to do the same using purely static methods, but I haven't thought that option through to comment on it.
-
2. Re: Locator Design Pattern
dsundstrom Aug 6, 2002 2:17 PM (in response to a13519)I'd use XDoclet if I were you as it includes a locator method in the generated code.