aspose file tools
The moose likes Java in General and the fly likes how to extract Bean ID in java for JMX   Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to extract Bean ID in java for JMX   " Watch "how to extract Bean ID in java for JMX   " New topic
Author

how to extract Bean ID in java for JMX

Deepak Angeshwar
Greenhorn

Joined: Aug 26, 2009
Posts: 3
All,

Is there a way to extract a Bean ID
once the list of beans has been passed to another bean

I have a JMXClient class, that takes a list of beans in its constructor
Beans are Bean1 & Bean2



JMX beans have a distinct object name that looks like
packagename:name<BeanID>,type=<classname>

e.g.
com:name=Bean1,type=ClassA
com:name=Bean2,type=ClassA

My JMXClient class constructs this object name and fetches the JMXBean from the server.
To construct this object name I need the Bean ID. Is there any way I can get hold of the Bean ID using Spring?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to extract Bean ID in java for JMX
 
Similar Threads
list shuttle exception
BeanUtils and null-properties.
Need to Get a Specific JMS Queue from the objectPool ( GenericKeyedObjectPool )
[Spring Security] No bean named 'springSecurityFilterChain' is defined
Class cast exception