Why does the EJB tier Service Locator pattern not cache and is not a singleton? Wouldn't the benefits of having a singleton and caching also benefit for the EJB tier as it does for the Web Tier? Thanks
-od
-
Service Locator in Pet Store/Blueprints (1 messages)
- Posted by: Orange Dude
- Posted on: January 17 2003 15:26 EST
Threaded Messages (1)
- Service Locator in Pet Store/Blueprints by Tomas Inger on January 20 2003 04:18 EST
-
Service Locator in Pet Store/Blueprints[ Go to top ]
- Posted by: Tomas Inger
- Posted on: January 20 2003 04:18 EST
- in response to Orange Dude
Hi!
Many client threads can use the same service locator class at the same time. If it is implemented as a Singleton, this means many threads can access the same EJB at the same time. And this is an error accroding to the spec!
/Tomas