5 Replies Latest reply on Nov 10, 2004 10:30 AM by dimitris

    Deployment Order

    sheckler

      Hi,
      I would like to deploy an mbean "Scheduler" to the deploy-ha-singleton directory, which is dependent from a queue "jms/scheduler/Timer ", which is deployed in deploy/jms directory.

      At the end of jboss (3.2.6) startup I get the following error:

      MBeans waiting for other MBeans:
      ObjectName: cmd.scheduler:service=Scheduler
      state: CONFIGURED
      I Depend On: jboss.mq.destination:service=Queue,name=jms/scheduler/Timer

      Depends On Me:

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.mq.destination:service=Queue,name=jms/scheduler/Timer
      state: NOTYETINSTALLED
      I Depend On:
      Depends On Me: cmd.scheduler:service=Scheduler


      How can I configure the ha-singleton directory to be deployed a f t e r the deploy directory? The queue must not be deployes to the ha-singleton/jms directory, because the queue is needed on every jboss node within the cluster, the scheduler mbean has to be a cluster singleton.

      Thanks
      Stefan



        • 1. Re: Deployment Order
          sheckler

          I meanwhile fixed this problem using an other service from the deploy directory as dependency.

          • 2. Re: Deployment Order
            ahahamyan

            I have a similar issue. I also have hasingleton mbeans that are now dependent on a jar that is deployed in the deploy folder (not the deploy-ha-singleton). This works, however, the hasingleton mbeans in the deploy-ha-singleton directory do not use the classes deployed on the deploy folder. I get ClassNotFoundExceptions, when deploying the mbeans, so I had to duplicate some of the jars in the deploy-ha-singleton directory as well. How can I have the singleton mbeans use the classes that are deployed in the deploy directory inside ears and jars?

            I would appreciate any help on this. Thanks

            • 3. Re: Deployment Order
              sheckler

              I think You should common used classes put into a separate jar and copy it to the lib directory. It will be in the classpath before deployment. This will not work for hot deployment.

              Stefan

              • 4. Re: Deployment Order
                ahahamyan

                thanks for the reply. We dont copy any jars to the lib folder, but either package them inside of the ears themselves or include them into the deploy folder. Meanwhile, I figured out that I can turn on the prefix deployment order in the jboss-service.xml (in the conf dir) and rename the deploy-ha-singleton-service.xml (in the deploy directory) to like 90deploy-ha-singleton-service.xml so that it gets deployed after all the other artifacts in the deploy folder. This way, I only need the hasingleton mbean sars in the deploy-hasingleton directory. When the mbeans are loaded/started they can reference the classes that were already deployed via the deploy folder.

                • 5. Re: Deployment Order
                  dimitris

                  Another way to do this (withouth the deployment sorter) is to make a directory:

                  ./deploy/deploy.last

                  and drop in the the singleton service