[jboss-dev-forums] [Design of POJO Server] - Re: property values in ManagementViewImpl.applyTemplate

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Dec 20 02:09:43 EST 2007


"Scott" wrote : Ales did the dispatch work, so I'm not sure how the component registry
  | is being maintained. The getComponentName method relies on the
  | ManagedObject.targetManagedObject setting, and this relies on the
  | @ManagementObjectRef/@ManagementObjectID annotations for the relations.
  | 
  | When you say connection factories, what property are you talking about?
  | A connection factory should have a component name based on its
  | @ManagementObjectID. The logic in getComponentName should also be
  | considering ManagedObjects with a proper name as a connection factory
  | would, based on its jndiName property:
  | 
  |    @ManagementProperty(name="jndi-name", description="The global JNDI
  | name to bind the factory under")
  |    @ManagementObjectID(type="DataSource")
  |    public String getJndiName()
  |    {
  |       return jndiName;
  |    }
  | 
  | Looking at the logic for setting the ManagedObject.setComponentName
  | value, the componentName relies on a ManagementRuntimeRef. This is
  | something Ales added. Let's move this discussion to the forum as there
  | needs to be a general understanding of how ManagedObjects are named and
  | referenced.

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

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



More information about the jboss-dev-forums mailing list