[jboss-dev-forums] [Design of POJO Server] - Re: Getting runtime component name from attachment

scott.stark@jboss.org do-not-reply at jboss.com
Mon Oct 8 20:02:59 EDT 2007


No, each ManagedProperty maps to a ManagedObject that corresponds to a runtime component when its marked with the runtime=true field of @ManagementObject. The name value of the @ManagementObjectRef is really not useful since your are binding this at the class level. Its typically used with a ManagedProperty that provides the name to tie the runtime ManagedObject to the root ManagedObject.


  |    @ManagementObjectRef(type = "LocalTx")
  |    public String getJndiName()
  |    {
  |       // The full ManagedObject name is name=getJndiName(),type="LocalTx"
  |    }
  | 


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

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



More information about the jboss-dev-forums mailing list