[jboss-dev-forums] [Design of POJO Server] - mbean service depends addition
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Oct 15 20:24:40 EDT 2008
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:
| <server>
| ...
| <!-- A custom deployment of the JBoss JNDI naming service -->
| <mbean code="org.jnp.server.Main"
| name="jboss.test:service=Naming,test=pooled-main"
| xmbean-dd="resource:xmdesc/Main-xmbean.xml">
| <!-- 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"
| attribute="Proxy">jboss.test:service=proxyFactory,type=pooled,target=Naming</depends>
| </mbean>
|
This injects the Proxy attribute from the 'jboss.test:service=proxyFactory,type=pooled,target=Naming' mbean into the NamingProxy attribute of the dependent bean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182529#4182529
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182529
More information about the jboss-dev-forums
mailing list