6 Replies Latest reply on Dec 21, 2010 6:37 AM by girafy.mail.ru

    How to make MBean dependency from HornetQ queue/topic within AS 6

    girafy.mail.ru

      I am trying make my mbean dependent from hornetq topic through the standard mechanism within the tag mbean as <depends>mydomain.org.hornetq:module=JMS,type=Topic,name="MyTopic"</depends>. But my service never starts. It is listed in the incompletely deployed services with the reason "NOT FOUND". I can still see my topic in JMX console but it is not visible for dependency manager.

       

      Could anyone advise what I do wrong? Or probably there is a workaround that helps to solve that kind of problem?

       

      Thanks in advance.

       

      P.S. I use JBoss 6RC1 with configuration "all".

        • 1. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
          jaikiran

          Stepan Rasin wrote:

           

          <depends>mydomain.org.hornetq:module=JMS,type=Topic,name="MyTopic"</depends>.

          That looks incorrect. It should just be:

           

          <depends>org.hornetq:module=JMS,type=Topic,name="MyTopic"</depends>

           

          By the way, what does your *hornetq-jms.xml file look like?

          • 2. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
            girafy.mail.ru

            Thank for reply. The syntax should be OK because through the JMX console and by mean MBean server my service is acceptable on it. And it is seams to me this is not a configuration issue.

            And in any case my ...-jms.xml is:

             

            <configuration xmlns="urn:hornetq"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
              
               <connection-factory name="MyConnectionFactory">
                  <connectors>
                     <connector-ref connector-name="my-netty"/>
                  </connectors>
                  <entries>
                     <entry name="/MyConnectionFactory"/>
                  </entries>
               </connection-factory>

             

               <topic name="MyTopic">
                  <entry name="/topic/MyTopic"/>
               </topic>
            </configuration>

            • 3. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
              jaikiran

              If you still have this problem then please post the entire error message and the exact depends that you have in your file.

              • 4. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
                girafy.mail.ru

                Yes, I do still have this problem. The erorr message I can see only if I re-start the server because on  hot deployment the problem is visible only through service controller within jmx-console. The error I see is

                10:04:06,142 ERROR [org.jboss.profileservice.bootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                 

                DEPLOYMENTS MISSING DEPENDENCIES:

                  Deployment "jboss.ebp-beans:service=MyMBeanClass" is missing the following dependencies:

                    Dependency "mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic' **")

                 

                DEPLOYMENTS IN ERROR:

                  Deployment "mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic" is in error due to the following reason(s): ** NOT FOUND Depends on 'mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic' **

                 

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha8]

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha8]

                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.20101110-CR1]

                    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]

                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0.20101110-CR1]

                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.20101110-CR1]

                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                    at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                And my jboss-service.xml mbean description is

                <mbean code="org.hornetq.jms.example.MyMBeanClass" name="jboss.ebp-beans:service=MyMBeanClass">
                        <depends>mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic</depends>
                    </mbean>

                Thanks

                • 5. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
                  jaikiran

                  I still say that you have got the depends wrong:

                   

                  <depends>mydomain.org.hornetq:module=JMS,name="MyTopic",type=Topic</depends>

                   

                  By default HornetQ registers the MBeans in org.hornetq domain. So unless you have done something special (which I don't see from what you posted of the *hornetq-jms.xml file), the depends should be:

                   

                  <depends>org.hornetq:module=JMS,name="MyTopic",type=Topic</depends>

                   

                  there should not be any mydomain part in it.

                  • 6. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
                    girafy.mail.ru

                    And you are right. There is nothing in *hornetq-jms.xml but there is a line like <jmx-domain>mydomain.org.hornetq</jmx-domain> in the *-hornetq-configuration.xml. And I see all topics and queues under this domain within jmx-console.