[jboss-dev-forums] [Design of Management Features on JBoss] - Re: How to Expose MBean Invocation Stats into admin-console?
ALRubinger
do-not-reply at jboss.com
Fri May 29 01:54:08 EDT 2009
It's this bit in DeployersImpl.getManagedObjects:
for (DeployerWrapper deployer : deployers)
| {
| outputs.addAll(deployer.getOutputs());
| // If the deployer supports ManagedObjectCreator let is augment/modify the managed objects
| if(deployer.getManagedObjectCreator() != null)
| mocs.add(deployer);
| }
| //
| mgtObjectCreator.build(unit, outputs, managedObjects);
Meaning that only the *outputs* of all deployers are scanned. If you just add an attachment with a name, that won't get passed to DefaultManagedObjectCreator.build.
So this helps in my deployer:
du.addAttachment(uniqueName, bean, BeanMetaData.class);
| this.addOutput(uniqueName);
Is this the expected behaviour?
Even still, I'm not seeing all the ManagedObjects that I'm expecting come through. More tomorrow.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234031#4234031
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234031
More information about the jboss-dev-forums
mailing list