0 Replies Latest reply on Apr 26, 2006 2:06 PM by Chris Kessel

    Best practice to skip an optional service?

    Chris Kessel Newbie

      We have several services that may run if our Configuration Service says the optional service is enabled (most everything depends on Configuration Service).

      What's the appropriate action for a non-configured service to avoid running? Do I call stop() in the start() method? Do I throw an exception? Do I stop it earlier in the life cycle before start() is even called?

      My searches haven't uncovered anything other than the Barrier example, but that doesn't fit the usage model I'm looking at here. Seems like a basic question, so I must be overlooking something in the docs.