Sorry all.
I have made some mistakes with my previous post, this is the new ..
I have a MDB that uses a queue, the destenation is jms/TicketQueue
I am using JBoss 3.2.5
I created the following file jboss-toddqueues-service.xml and put it under deploy dir :
<server> <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=TicketQueue"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean> </server>
<message-driven> <destination-jndi-name>jms/TicketQueue</destination-jndi-name> </message-driven>