[jboss-dev-forums] [Design of POJO Server] - Re: Getting runtime component name from attachment
adrian@jboss.org
do-not-reply at jboss.com
Fri Oct 5 05:37:15 EDT 2007
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#4091904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091904
More information about the jboss-dev-forums
mailing list