|
| hi i am new for WebSphere.
but right now i am working on WebSphere Monitoring and i am using PMI Iterfaces and jars for this purpose.
Actual Problem is :
i installed WebSphere Version 5.1 and it display on WebSphere browser also 5.1.
but when i display through AdminClient(Jmx-agent), it displays version info as 5.0.
i add all the required runtime dependent jars from WebSphere_Home\lib.
Actually it should display Version Info as 5.1. i am taking this info from MBean. i am giving u a glimpse of code as below so u can very well make out what is happening.
code.
String query = "WebSphere:type=Server,*";
ObjectName queryName = new ObjectName(query);
Set s = adminClient.queryNames(queryName, null);
if (!s.isEmpty())
serverMBean = (ObjectName)s.iterator().next();
else
{
System.out.println("Node agent MBean was not found");
System.exit(-1);
}
System.out.println("Server MBean:"+ serverMBean);
System.out.println("WebSphere Version::" +serverMBean.getKeyProperty("version"));
End Code:
See last line of code. which can tell how i am taking WebSphere Version info. can anybody help me out what is the reason for this.
see i need help urgently if u have anything about this pls help me.
thanks in advance,
lbrd.
|
|