Hi Aiden,
First thanks a lot for your reply I was waiting for a reply for few days
hopefully.
I did some modification to my program and I'm listing all the attributes of
all the mbeans which is having org.apache.qpid domain.
Here's the output of my program....(I'm printing the attribute name and
value and type in a single line and for now I haven't done any formattings
with the output.
========================================================================
Press <Enter> to continue...
TOTAL MBEAN COUNT: 46
DOMAINS:
Domain[0] = JMImplementation
Domain[1] = com.sun.management
Domain[2] = org.apache.qpid
Domain[3] = java.lang
Domain[4] = java.util.logging
ALL THE EXPOSED CLASSES
29
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
=======================================================================
Name amq.direct java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
=======================================================================
Name ping java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 5000 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
=======================================================================
Name queue java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 5000 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
=======================================================================
Name amq.match java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType headers java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
=======================================================================
Name queue java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 5000 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
=======================================================================
Name amq.fanout java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType fanout java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
=======================================================================
Name <<default>> java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
=======================================================================
Name amq.match java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType headers java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
=======================================================================
Name amq.topic java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType topic java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
=======================================================================
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
=======================================================================
Name test.topic java.lang.String
Durable false boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
=======================================================================
Name amq.direct java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
=======================================================================
Name amq.topic java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType topic java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=UserManagement,name=UserManagement
=======================================================================
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
=======================================================================
Name amq.topic java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType topic java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
=======================================================================
Name ping java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 0 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
=======================================================================
Name <<default>> java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
=======================================================================
Name amq.fanout java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType fanout java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
=======================================================================
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
=======================================================================
Name test-queue java.lang.String
Owner null java.lang.String
Durable true boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 0 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
=======================================================================
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
=======================================================================
Name queue java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 0 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
=======================================================================
Name amq.direct java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
=======================================================================
Name test-ping java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 0 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
=======================================================================
Name <<default>> java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
=======================================================================
Name amq.fanout java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType fanout java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
=======================================================================
Name amq.match java.lang.String
Durable true boolean
AutoDelete false boolean
ExchangeType headers java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
=======================================================================
Name test.direct java.lang.String
Durable false boolean
AutoDelete false boolean
ExchangeType direct java.lang.String
TicketNo 0 java.lang.Integer
=======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
=======================================================================
Name ping java.lang.String
Owner null java.lang.String
Durable false boolean
AutoDelete false boolean
MessageCount 0 java.lang.Integer
QueueDepth 0 java.lang.Long
MaximumMessageSize 2117632 java.lang.Long
ConsumerCount 0 java.lang.Integer
ActiveConsumerCount 0 java.lang.Integer
ReceivedMessageCount 0 java.lang.Long
MaximumMessageCount 5000 java.lang.Long
MaximumQueueDepth 4136 java.lang.Long
MaximumMessageAge 600000 java.lang.Long
Close the connection to the server
Bye! Bye!
[EMAIL PROTECTED]:~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
=========================================================================
On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <[EMAIL PROTECTED]> wrote:
> Hey Lahiru,
>
> the screenshot you sent was stripped by the mailing list, as it's a
> command line it's probably best just to copy and paste the output into
> an email anyway.
>
> As for a next step, probably something quick like listing all the
> queues or the count on a specified queue.
I think I have done what you are asking but I'm not sure if I'm wrong please
let me know.
Could you please explain it some more and however I will try to understand
what you meant by that sentence.
Thanks in advance
Regs
lahiru