[jboss-dev-forums] [Design the new POJO MicroContainer] - JMX property or dynamically added to DeploymentUnit?

scott.stark@jboss.org do-not-reply at jboss.com
Tue Mar 18 14:02:47 EDT 2008


To be able to move the ejb2 Container to an mc bean that also has an mbean registration I either need the JMX annotation to have a property name which provides the ObjectName value to use, or create the annotation dynamically and register it with the DeploymentUnit.MutableMetaData as I see that the JMXLifecycleCallback is looking to the ControllerContext.ScopeInfo.MetaData.

I assume DeploymentUnit.MutableMetaData.addAnnotation(jmx) ultimately shows up in the ControllerContext.ScopeInfo.MetaData, but have not traced this all the way through yet.

What is the preferred approach?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137544#4137544

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137544



More information about the jboss-dev-forums mailing list