[jboss-dev-forums] [Design of POJO Server] - MetaValue representation of javax.management.ObjectNames

ips do-not-reply at jboss.com
Thu Nov 20 13:09:00 EST 2008


In the Topic and Queue ManagedComponents, there are a couple properties, namely "DLQ" and "expiryQueue", whose values represent JMX ObjectNames. In destinations-service.xml, the values of these properties are represented as simple Strings, e.g.:

   
  |     <mbean code="org.jboss.jms.server.destination.QueueService"
  |       name="jboss.messaging.destination:service=Queue,name=QueueWithOwnDLQAndExpiryQueue"
  |       xmbean-dd="xmdesc/Queue-xmbean.xml">
  |       <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>      
  |       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
  |       <depends>jboss.messaging:service=PostOffice</depends>
  |       <attribute name="DLQ">jboss.messaging.destination:service=Queue,name=PrivateDLQ</attribute>
  |       <attribute name="ExpiryQueue">jboss.messaging.destination:service=Queue,name=PrivateExpiryQueue</attribute>
  |    </mbean> 
  | 

However, the Profile Service represents the values using an unwieldy CompositeValue that contains several levels of nested CompositeValues and SimpleValues. Its MetaType looks like this (though this toString() representation only shows the first level of nested types):


  | MutableCompositeMetaType{javax.management.ObjectName items=[name=MBeanServer type=javax.management.MBeanServer], [name=canonicalKeyPropertyListString type=java.lang.String], [name=canonicalName type=java.lang.String], [name=domain type=java.lang.String], [name=domainPattern type=java.lang.Boolean], [name=keyPropertyList type=java.util.Map],[name=keyPropertyListString type=java.lang.String], [name=pattern type=java.lang.Boolean], [name=propertyListPattern type=java.lang.Boolean],[name=propertyPattern type=java.lang.Boolean],[name=propertyValuePattern type=java.lang.Boolean]}
  | 

This makes it a lot more difficult to provide the ability to edit these properties via Jopr. Is there any chance their types can be changed to SimpleMetaType.STRING?


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

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



More information about the jboss-dev-forums mailing list