Can you explain what MetaDataNameProvider is trying to do?
Your solution is far from OO.
If this is in the deployers, then you should be doing it from the components,
each component deployer decides its own name for the components.
String componentName = deploymentUnit.getName();
If this is from the ManagedObject stuff then the name should be provided by the
ManagedObjectCreator in the ManagedObject somewhere.
In fact, it should be on each ManagedProperty since there is no guarantee
one ManagedObject maps to one context on the bus.
e.g. The DataSource maps to four JMX MBeans (ConnectionManager, ConnectionPool,
ConnectionFactory, JNDIBinder).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091904#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...