0 Replies Latest reply on Oct 15, 2008 8:24 PM by Scott Stark

    mbean service depends addition

    Scott Stark Master

      One addition I had to make to allow the pojoized naming beans to still be correctly used as mbeans was to add an 'attribute' attribute to the mbean depends element. Its similar to the mcbean inject property attribute:

       <!-- A custom deployment of the JBoss JNDI naming service -->
       <mbean code="org.jnp.server.Main"
       <!-- The bootstrap port used to lookup the Naming proxy -->
       <attribute name="Port">10999</attribute>
       <!-- Don't override the default naming service -->
       <attribute name="InstallGlobalService">false</attribute>
       <attribute name="Naming"><inject bean="LocalNamingBean"/></attribute>
       <!-- The detached pooled invoker proxy -->
       <depends optional-attribute-name="NamingProxy"

      This injects the Proxy attribute from the 'jboss.test:service=proxyFactory,type=pooled,target=Naming' mbean into the NamingProxy attribute of the dependent bean.