[jboss-jira] [JBoss JIRA] Reopened: (JBAS-6688) expose ManagedProperties representing ObjectNames as SimpleMetaType.STRINGs rather than ImmutableCompositeMetaType{javax.management.ObjectName}s

Ian Springer (JIRA) jira-events at lists.jboss.org
Sun Apr 5 11:49:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Springer reopened JBAS-6688:
--------------------------------



Looks like this caused a regression. Now when I look at the ManagedComponent for an existing topic or queue that has a DLQ, expiryQueue, and/or serverPeer defined, the corresponding ManagedProperties have null values.

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> 

has ManagedProperties:

  name=DLQ, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, type=SimpleMetaType, value=  <<<null>>>
* name=JNDIName, viewUse=CONFIGURATION, readOnly=false, mandatory=true, removed=false, value=  SimpleMetaType:java.lang.String:/queue/QueueWithOwnDLQAndExpiryQu
eue
  name=clustered, viewUse=CONFIGURATION, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:boolean:false
  name=downCacheSize, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:2000
  name=expiryQueue, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, type=SimpleMetaType, value=  <<<null>>>
  name=fullSize, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:200000
  name=maxDeliveryAttempts, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:-1
  name=maxSize, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:-1
  name=messageCounterHistoryDayLimit, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:-1
* name=name, viewUse=CONFIGURATION, readOnly=true, mandatory=true, removed=false, value=  SimpleMetaType:java.lang.String:QueueWithOwnDLQAndExpiryQueue
  name=pageSize, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:int:2000
  name=redeliveryDelay, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, value=  SimpleMetaType:long:-1
  name=securityConfig, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, type=MapCompositeMetaType, value=  <<<null>>>
  name=serverPeer, viewUse=CONFIGURATION, readOnly=false, mandatory=false, removed=false, type=SimpleMetaType, value=  <<<null>>>
  name=consumerCount, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:java.lang.Integer:0
  name=createdProgrammatically, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:java.lang.Boolean:false
  name=deliveringCount, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:java.lang.Integer:0
  name=messageCount, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:java.lang.Integer:0
  name=messageCounter, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  CompositeValueSupport: metaType=[MutableCompositeMetaType{org.j
boss.jms.server.messagecounter.MessageCounter items=[name=count type=int], [name=countDelta type=int], [name=counterAsString type=java.lang.String], [name=desti
nationDurable type=boolean], [name=destinationName type=java.lang.String], [name=destinationSubscription type=java.lang.String], [name=destinationTopic type=boo
lean], [name=historyAsString type=java.lang.String], [name=historyLimit type=int], [name=lastUpdate type=long], [name=messageCount type=int], [name=messageCount
Delta type=int]}] items=[count=SimpleMetaType:int:0,countDelta=SimpleMetaType:int:0,counterAsString=SimpleMetaType:java.lang.String:Queue,Queue.QueueWithOwnDLQA
ndExpiryQueue,-,-,0,0,0,0,-,destinationDurable=SimpleMetaType:boolean:false,destinationName=SimpleMetaType:java.lang.String:Queue.QueueWithOwnDLQAndExpiryQueue,
destinationSubscription=null,destinationTopic=SimpleMetaType:boolean:false,historyAsString=SimpleMetaType:java.lang.String:1
4/5/09,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
,historyLimit=SimpleMetaType:int:-1,lastUpdate=SimpleMetaType:long:0,messageCount=SimpleMetaType:int:0,messageCountDelta=SimpleMetaType:int:0]
  name=messageStatistics, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  CompositeValueSupport: metaType=[MutableCompositeMetaType{or
g.jboss.jms.server.messagecounter.MessageStatistics items=[name=asString type=java.lang.String], [name=count type=int], [name=countDelta type=int], [name=depth
type=int], [name=depthDelta type=int], [name=durable type=boolean], [name=name type=java.lang.String], [name=subscriptionID type=java.lang.String], [name=timeLa
stUpdate type=long], [name=topic type=boolean]}] items=[asString=SimpleMetaType:java.lang.String:Queue,Queue.QueueWithOwnDLQAndExpiryQueue,-,-,0,0,0,0,-,count=S
impleMetaType:int:0,countDelta=SimpleMetaType:int:0,depth=SimpleMetaType:int:0,depthDelta=SimpleMetaType:int:0,durable=SimpleMetaType:boolean:false,name=SimpleM
etaType:java.lang.String:Queue.QueueWithOwnDLQAndExpiryQueue,subscriptionID=null,timeLastUpdate=SimpleMetaType:long:0,topic=SimpleMetaType:boolean:false]
  name=scheduledMessageCount, viewUse=STATISTIC, readOnly=true, mandatory=false, removed=false, value=  SimpleMetaType:java.lang.Integer:0


> expose ManagedProperties representing ObjectNames as SimpleMetaType.STRINGs rather than ImmutableCompositeMetaType{javax.management.ObjectName}s
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-6688
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6688
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: ProfileService
>            Reporter: Ian Springer
>            Assignee: Scott M Stark
>            Priority: Minor
>             Fix For: JBossAS-5.1.0.CR1
>
>
> Properties representing ObjectNames in the Topic and Queue ManagedComponents are currently exposed as a complicated CompositeValueSupport type that contains a String and a Properties child value, e.g.:
>   name=serverPeer, viewUse=CONFIGURATION, mandatory=false, value=  CompositeValueSupport: metaType=[ImmutableCompositeMetaType{javax.management.ObjectName items
> =[name=domain type=java.lang.String], [name=keyPropertyList type=java.util.Properties]}] items=[domain=SimpleMetaType:java.lang.String:jboss.messaging,keyProper
> tyList={service=ServerPeer}]
>   Items:
>     domain=SimpleMetaType:java.lang.String:jboss.messaging
>     keyPropertyList={service=ServerPeer}
> I think exposing it as a simple value of type SimpleMetaType.STRING would make things easier for Jopr/EmbJopr, as well as other clients of the management interface. As it's exposed today, just to get it into a usable format, the client would have to write code to convert the CompositeValue into an ObjectName, rather than being able to simply call new ObjectName(simpleValue.getValue()).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list