Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How Service Locator works?  RSS feed

 
Ravikumar Chenna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a Big Enterprise application where the network(Remote) interactions are more, then if we implement a Service Locator which has only one instance, how it will able to service to whole application. If 500 users are accessing the application at the same time, Could you please explain how service Locator will work? whether it will manage with only one instance??
[ February 09, 2007: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravikumar,
Welcome to JavaRanch!

As described in Sun's official description, the ServiceLocator pattern uses a factory. You don't need to have a true singleton where the ServiceLocator is a remote call. You can use a singleton per server.
 
Ravikumar Chenna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

Thank you..

Ravi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!