Hi,
I've tried this code but am having a problem with this line:
Set objs = adminService.queryNames( queryName, null );
it is returning a null pointer exception.
Can I confirm with you which class libraries you imported to ensure types, as Set has two different class libraries.
Here are the ones I imported:
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.ReflectionException;
import com.ibm.websphere.*;
import com.ibm.websphere.management.AdminService;
import com.ibm.websphere.management.AdminServiceFactory;
Suggestions welcomed.
Thanks
Steve