The moose likes Websphere and the fly likes Can not get MBean-JMX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Can not get MBean-JMX" Watch "Can not get MBean-JMX" New topic

Can not get MBean-JMX

Russ Ray
Ranch Hand

Joined: Feb 11, 2003
Posts: 52
I am developing a simple admin program for WebSphere Application Server. I am following the Technical Journal (from IBM) on how to accomplish this task. However, I am still not getting a populated set back. Can anyone explain or point me in the right direction?
Here is the code:
// Query for the ObjectName of the NodeAgent MBean on the given node
String query = "WebSphere:type=NodeAgent,node=" +nodeName+ ",*";
ObjectName queryName = new ObjectName(query);
Set s = adminClient.queryNames(queryName, null);
if(nodeAgent == null)
System.out.println("Did not find this MBean >> " + queryName);
I agree. Here's the link: http://aspose.com/file-tools
subject: Can not get MBean-JMX