6 Replies Latest reply on Nov 1, 2002 4:58 AM by bdbos

    Dependencies between Modules/MBeans

    bdbos

      I am only familiar with the basics of JMX for this moment.
      But I have some questions...

      Does (JBoss)JMX handle dependencies that could exist between modules/mbeans?
      Is it possible to configure a startup sequence and of course the shutdown sequence?

      If so, will this work when dependent modules run below different application server instances as well?

      For example: a module A which implements a dataserver client depends on a module B running below a different server that implements the dataserver. When module B is not started, module A will fail to start.

      Are there any alternatives, when this is not possible?


      I hope someone could answer my questions. Thanks!

      Bram Doornbos

        • 1. Re: Dependencies between Modules/MBeans
          bdbos

          Nobody that can answer my questions? :-(

          Greetings,

          Bram Doornbos

          • 2. Re: Dependencies between Modules/MBeans

            It is unclear what you are asking.

            What is a module?
            What does "running beneath an app server" mean?

            If I understand correctly, you have
            machine M1 with a jmx service S1
            machine M2 with a jmx service S2

            You don't want M1 to start S1 until M2 starts S2?

            Maybe this is possible with the remoting feature in 4.0?

            Regards,
            Adrian

            • 3. Re: Dependencies between Modules/MBeans
              bdbos

              Thank you for the response.
              Sorry for being unclear...

              With a module I mean a subsystem that is represented by a MBean in JMX.

              What you describe is exactly what I am looking for:

              "If I understand correctly, you have
              machine M1 with a jmx service S1
              machine M2 with a jmx service S2

              You don't want M1 to start S1 until M2 starts S2?"

              We have implemented multiple service applications that depend on each other. We are looking for a way to manage this system and handle the startup and shutdown sequence.

              Does the JBoss JMX implementation handle depencies between services or is this the responsibility of another part of JBoss?

              (I saw the MLet configuration parameter 'depends' in some configuration files.)

              What can remoting do for me in the scenario with multiple machines and services?

              Thanks,

              Bram

              • 4. Re: Dependencies between Modules/MBeans


                says don't start this MBean until the other is bean
                is started

                It is part of jboss-system - the core micro-kernel
                built on jboss-jmx

                The remoting (just added to the 4.0alpha)
                allows MBeans from one server to appear in the local
                server and vice-versa.
                Thinking about it, it would require a change to
                jboss-system's ServiceController to use the remote
                mbeans as dependencies, because it does not actually
                control them.

                Regards,
                Adrian

                • 5. Re: Dependencies between Modules/MBeans
                  bdbos

                  So I have a job to do. ;-)

                  Would be a great enhancement of JMX when this would be added to the standard. Am I right? I am pointing to the startup and shutdown of services/mbeans.

                  Thank you,

                  Bram

                  • 6. Re: Dependencies between Modules/MBeans
                    bdbos

                    So I have a job to do. ;-)

                    Would be a great enhancement of JMX when this would be added to the standard. Am I right? I am pointing to the startup and shutdown of services/mbeans.

                    Thank you,

                    Bram