5 Replies Latest reply on Jan 10, 2006 1:09 PM by lapoutre

    MBean depends

    lapoutre

      I made a service that depends on a queue I created.

      the queue is named in my JMX console like this :
      Domain Name: jboss.mq.destination
      service: Queue
      name: com/toto/titi/MyClass

      JNDI queue name is : queue/com/toto/titi/MyClass

      the dependency in the jboss-service is as follow :

      <depends optional-attribute-name="com/toto/titi/MyClass">jboss.mq.destination:service=Queue

      I got the following error :
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=com/toto/titi/MyClass value=jboss.mq.destination:service=Queue on mbean comp.com:service=MyService; - nested throwable: (javax.management.AttributeNotFoundException: not found: com/toto/titi/MyClass )

      WHY ??? :(

      tks

        • 1. Re: MBean depends
          starksm64

          Use [ code ] ... [ /code ] (without the spaces) tags to display the configuration correctly.

          • 2. Re: MBean depends
            lapoutre

            I made a service that depends on a queue I created.

            the queue is named in my JMX console like this :

            Domain Name: jboss.mq.destination
            service: Queue
            name: com/toto/titi/MyClass


            JNDI queue name is : queue/com/toto/titi/MyClass

            the dependency in the jboss-service is as follow :

            <depends optional-attribute-name="com/toto/titi/MyClass">jboss.mq.destination:service=Queue </depends>


            I got the following error :

            org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=com/toto/titi/MyClass value=jboss.mq.destination:service=Queue on mbean comp.com:service=MyService; - nested throwable: (javax.management.AttributeNotFoundException: not found: com/toto/titi/MyClass )


            WHY ??? :(

            tks

            • 3. Re: MBean depends
              starksm64

              Beause the service to which the depends was added has no attribute named "com/toto/titi/MyClass", which not a valid attribute name.

              Read the jmx chapter in the server guide.
              http://www.jboss.com/products/jbossas/docs

              • 4. Re: MBean depends
                lapoutre

                tks, it works

                • 5. Re: MBean depends
                  lapoutre

                  I've an other question.

                  this is the same context.
                  I have the following error when I try to get the JMS connection.

                  javax.naming.NameNotFoundException: ConnectionFactory not bound


                  what dependency shall I have to declare to load the service at startup???

                  tks