WebSphere Application Server - WebSphere 5.1 Version display Version info as 5.0 through Jmx - agent(AdminClient)

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > April 2006 > WebSphere 5.1 Version display Version info as 5.0 through Jmx - agent(AdminClient)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WebSphere 5.1 Version display Version info as 5.0 through Jmx - agent(AdminClient)

2006-04-27, 8:08 am

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.




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com