@HandlerInput(name="RemoveProps", type=ArrayList.class)})
public static void saveJmsServiceSettings(HandlerContext handlerCtx) {
ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
JMSServiceConfig jConfig = config.getJMSServiceConfig();
ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
Map addProps = (Map)handlerCtx.getInputValue("AddProps");
String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
try {
for(int i=0; i<remove.length; i++){
jConfig.removeProperty(remove[i]);
}
if(addProps != null ){
Iterator additer = addProps.keySet().iterator();
while(additer.hasNext()){
Object key = additer.next();
String addvalue = (String)addProps.get(key);
jConfig.setPropertyValue((String)key, addvalue);
}
}
jConfig.setType(((String)handlerCtx.getInputValue("Type")));
jConfig.setInitTimeoutInSeconds(((String)handlerCtx.getInputValue("Timeout")));
jConfig.setStartArgs(((String)handlerCtx.getInputValue("Arguments")));
jConfig.setReconnectEnabled(((Boolean)handlerCtx.getInputValue("Reconnect")).booleanValue());
jConfig.setReconnectIntervalInSeconds(((String)handlerCtx.getInputValue("Interval")));
jConfig.setReconnectAttempts(((String)handlerCtx.getInputValue("Attempts")));
jConfig.setDefaultJMSHost(((String)handlerCtx.getInputValue("Host")));
jConfig.setAddressListBehavior(((String)handlerCtx.getInputValue("Behavior")));
jConfig.setAddressListIterations(((String)handlerCtx.getInputValue("Iterations")));
jConfig.setMQScheme(((String)handlerCtx.getInputValue("Scheme")));
jConfig.setMQService(((String)handlerCtx.getInputValue("Service")));
}catch(Exception ex){
GuiUtil.handleException(handlerCtx, ex);
}
}