2 Replies Latest reply on Feb 16, 2004 5:36 PM by rwarrior

    MBean depends on another MBean to be started

    jptaylor

      There are numerous topics on setting up dependencies of MBeans to ensure deployment order. However, I need MBean "A" to complete its startService() method before MBean "B" begins its startService() method.

      Although having MBean "B" depend on MBean "A" does ensure that the startService() method for "A" is called before "B"s, I actually need "A"s to have completed.

      I've tried the Russian Doll packaging and various other -service.xml techniques, but nothing has worked.

      I appreciate your help,
      -Justin

        • 1. Re: MBean depends on another MBean to be started
          starksm64

          The A.startService method must return before B.startService will be called. Are your doing asynch processing in A.startService?

          • 2. Re: MBean depends on another MBean to be started
            rwarrior

            I am also interested in this issue. For instance we have our own PersistenceService which is based on JCA Connectors, and another JMX Service handles some corba services. So others need them to be started up.
            The only way we handled this is to perform a waiting loop and polling the services if they are started up. But is there no other way to do this, via a notification mechanism for instance?

            regards
            martin woeginger