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

    Deployment Order


      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:

      ObjectName: jboss.mq.destination:service=Queue,name=jms/scheduler/Timer
      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.


        • 1. Re: Deployment Order

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

          • 2. Re: Deployment Order

            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

              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.


              • 4. Re: Deployment Order

                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

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


                  and drop in the the singleton service