ACCESSING WEBLOGIC MBEANS

I M WORKING ON A PROJECT "JAMX SERVER CONSOLE". FOR JBOSS I AM GETTING THE MBEANS,ATTRIBUTES AND OPERATIONS...AND I CAN INVOKE THE OPERATIONS ALSO...

BUT IN CASE OF WEBLOGIC.. I M ONLY GETTING THE MBEAN INFORMATION BY

Set mySet=connection.queryMBeans(null,null);

Iterator itr=mySet.iterator();

while(itr.hasNext())

{

Object mbean=itr.next();

System.out.println(mbean);

Thread.sleep(2000);

}

now to get attributes and operations i need objectname but the itr.next() returns the object instance and it cannot be casted into object name so i cannot use getMbeanInfo() method...

help me plz....

[665 byte] By [Mitesh51a] at [2007-11-27 2:59:47]
# 1
Use queryNames instead of queryMBeans. queryNames returns a Set of ObjectName rather than a Set of ObjectInstance.蒩monn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus
emcmanusa at 2007-7-12 3:40:29 > top of Java-index,Core,Monitoring & Management...