private synchronized AdminResponse callSetAttributes(AdminRequest req)
{
Object invokeResult = null;
AdminResponse response = new AdminResponse();
AdminResponseConfigurator responseConfig = new
AdminResponseConfigurator(response);
AdminRequestConfigurator requestConfig = new
AdminRequestConfigurator(req);
ObjectName mbeanName = requestConfig.getObjectName();
AttributeList attributes = requestConfig.getAttributeList();
try
{
AttributeList values = mMBeanServer.setAttributes(mbeanName,
attributes);
responseConfig.setReturnValue(values);
mLogger.log(Level.FINE, "comm.set_attrs_ok", mbeanName);
}
catch(Exception e)
{
mLogger.log(Level.WARNING, "comm.set_attrs_failed", unwrapMBeanException(e));
responseConfig.setException(e);
}
return ( response );
}