I'm migrating my sar's from JB 4.0.2 to JBoss 5. All of my SAR code depends on
various Topic and Queues to be available in the JNDI namespace at the time of startup.
I had no problem in JB 4.04. I am trying to figure out how to set up a depends tag
in my jboss-service.xml.
Here is my jboss-service.xml for one of my sar mbeans.
<?xml version="1.0" encoding="UTF-8"?>
<classpath codebase="." archives="myCode.jar/>
jboss.messaging.queue:service=Queue,name=OrderQueue
Here is the declaration of the Queue in messaging/destinations-service.xml
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=OrderQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice
queue/OrderQueue
10000
5
When JB 5 starts up, I receive the exception:
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "myTest:service=OrderProcessorStartup" is missing the following dependencies:
Dependency "jboss.messaging.queue:name=OrderQueue,service=Queue" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging.queue:name=OrderQueue,service=Queue' **")
DEPLOYMENTS IN ERROR:
Deployment "jms.queue:name=OrderQueue,service=Queue" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging.queue:name=OrderQueue,service=Queue' **
Any pointers would be greatly appreciated.
Thanks in advance.