ObjectAttribute objAttr = (ObjectAttribute)attrIterator.next();
AccessController.checkAccess(context,
ACLConstants.ACL_UPDATE_MBEAN_ATTRIBUTES,
objAttr.getName());
}
AttributeListData attrListData = null;
ServerConnection serverConnection = null;
try{
serverConnection = ServerConnector.getServerConnection(appConfig);
attributeList =
serverConnection.setAttributes(objectName, attributeList);
attrListData = new AttributeListData(appConfig.getName(),
attributeList);
String logString = getLogString(attributeList);
UserActivityLogger.getInstance().logActivity(
context.getUser().getUsername(),
"Updated the attributes of application:" +
appConfig.getName() + ", object name:" +
objectName.getCanonicalName() +
logString);
}catch(ConnectionFailedException e){
logger.log(Level.FINE, "Error connecting to :" +
appConfig.getName(), e);
attrListData = new AttributeListData(appConfig.getName());
}finally{
ServiceUtils.close(serverConnection);
}
return attrListData;
}