To allow jboss bean deployments to work in the jmx lifecycle
I've made the bean deployer use "Manual" mode.
Since the deployments are MBeans under the control of the ServiceController,
you can use these names like you would any other dependency.
e.g.
<depends>jboss.beans:service=JBossBeanDeployment,name='mybeans.bar'</depends>
<?xml version="1.0" encoding="UTF-8"?> <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" xmlns="urn:jboss:bean-deployer" name="HelloBeans"> <!-- HERE --> <bean name="Name1" class="test.Hello"> <property name="prop">Property</property> </bean> </deployment> Gives: <depends>jboss.beans:service=JBossBeanDeployment,name='HelloBeans'</depends>
That alias form does not add much. What I have wanted for some time is a syntax like:
<depends alias="HelloBeans" />