I tried the following dependencies each alone, and all together
<depends optional-attribute-name="Invoker">jboss.mq:service=Invoker</depends> <depends>jboss.mq:alias=UIL2ConnectionFactory,service=InvocationLayer,type=UIL2</depends> <depends>jboss.mq:service=InvocationLayer,type=JVM</depends>
but it doesn't work
it may be a bit late... the only service your mbean should depend on is the queue you are connecting to (queues are also defined as mbeans), this should do.
Did you find a solution to your problem?
I'm having same problem.
in fact I'm coding it a second time.
The thing, like wzzzrd said, is that You have to be independent of elements, as much as you can.
The MBean is loaded but may be not connected at the JMS queue.
In order to perfom that, I'm coding a retrying system.
This system is usefull when you start jboss with your service.
If it's hot plugged, the queue is already available and the MBean can connect it without any problem.