private static void addNewExtraProperties(ObjectName objName, Properties props, AttributeList attrList, ServerInterface mejb) throws Exception {
try{
String[] signature = new String[]{"javax.management.Attribute"};
Object[] params = null;
if(props.size() > attrList.size()){
java.util.Enumeration listProps = props.propertyNames();
while(listProps.hasMoreElements()){
String propName = listProps.nextElement().toString();
if(! attrList.contains(propName)){
Attribute attr = new Attribute(propName, props.getProperty(propName));
params = new Object[]{attr};
mejb.invoke(objName, __SetProperty, params, signature);
}
}
}
}catch(Exception ex){
throw new Exception(ex.getLocalizedMessage(), ex);
}
}