I'm using JBoss3.0.4 and my MDB works regardless that its not specified in my JBossMQ-destinations-service.xml descriptor file.
But, I had initially set up my queue in JBossMQ-destinations-service.xml when JBoss was already started and then tested my MDB (it worked then). Before that my MDB didn't.(pretty sure)
But, alas, now, when I start JBoss I get an error about my JMS not being loaded?:
14:34:24,180 INFO [MainDeployer] Starting deployment of package: file:/home/piter/jboss-3.0.4/server/default/deploy/jbossmq-destinations-service.xml
14:34:24,244 WARN [ServiceConfigurator] Failed to complete install
java.lang.ClassNotFoundException: org.jboss.mq.server.QueueManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
So, now I've taken out my queue description from the JBossMQ-destinations-service.xml
<depends optional-attribute-name="JBossMQService">jboss.mq:service=Server
<depends optional-attributename=" SecurityManager">jboss.mq:service=SecurityManager
out of my JBossMQ-destinations-service.xml and now JBoss loads up w/ no problem and my Queue works too!
So, do you only once put the queue description in the JBossMQ-destinations-service.xml and take it out thereafter? do you not even need to modify the JBossMQ-destinations-service.xml when only working with queues?
puzzled,
-Piter