-
1. Re: How to make MBean dependency from HornetQ queue/topic within AS 6
jaikiran Dec 9, 2010 12:39 PM (in response to girafy.mail.ru)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 Dec 10, 2010 3:37 AM (in response to jaikiran)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 Dec 16, 2010 6:27 AM (in response to girafy.mail.ru)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 Dec 17, 2010 4:09 AM (in response to jaikiran)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 Dec 18, 2010 1:22 AM (in response to girafy.mail.ru)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 Dec 21, 2010 6:37 AM (in response to jaikiran)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.