Use [ code ] ... [ /code ] (without the spaces) tags to display the configuration correctly.
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 ??? :(
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.
tks, it works
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???