1 Reply Latest reply on Oct 26, 2009 10:16 AM by jaikiran

    proper sar depends config.


      I'm migrating my sar's from JB 4.0.2 to JBoss 5. All of my SAR code depends on
      various Topic and Queues to be available in the JNDI namespace at the time of startup.

      I had no problem in JB 4.04. I am trying to figure out how to set up a depends tag
      in my jboss-service.xml.

      Here is my jboss-service.xml for one of my sar mbeans.

      <?xml version="1.0" encoding="UTF-8"?>

      <classpath codebase="." archives="myCode.jar/>

      jboss.messaging.queue:service=Queue,name=OrderQueue






      Here is the declaration of the Queue in messaging/destinations-service.xml

      <mbean code="org.jboss.jms.server.destination.QueueService"
      name="jboss.messaging.destination:service=Queue,name=OrderQueue"
      xmbean-dd="xmdesc/Queue-xmbean.xml">
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
      jboss.messaging:service=PostOffice
      queue/OrderQueue
      10000
      5



      When JB 5 starts up, I receive the exception:

      DEPLOYMENTS MISSING DEPENDENCIES:
      Deployment "myTest:service=OrderProcessorStartup" is missing the following dependencies:
      Dependency "jboss.messaging.queue:name=OrderQueue,service=Queue" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging.queue:name=OrderQueue,service=Queue' **")

      DEPLOYMENTS IN ERROR:
      Deployment "jms.queue:name=OrderQueue,service=Queue" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging.queue:name=OrderQueue,service=Queue' **

      Any pointers would be greatly appreciated.

      Thanks in advance.


        • 1. Re: proper sar depends config.
          jaikiran

           

          jboss.messaging.destination:service=Queue,name=OrderQueue


          and

          jboss.messaging.queue:name=OrderQueue,service=Queue


          The names don't match. Notice that one is jboss.messaging.queue... and the other jboss.messaging.destination...

          Fix the depends tag appropriately to depend on the right name.


          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.