1 Reply Latest reply on Jan 10, 2005 2:34 AM by jignesh rangwala

    serviceLocator pattern used correctly


      hi ,
      the service locator pattern advise to use a locator to get the context from a contextFactory and return the home IF to the client to apply the create method ,

      now if its all about decoupling the lookup code from the client -
      isnt it wiser that the serviceFactory will return the home interfaces to the locator(singleton) which will be bound to the application's context , and for every call for service will create a remoteInterface and deliver it to the client's helper