String maxSessions = (String)handlerCtx.getInputValue("MaxSessions");
String sessFileName = (String)handlerCtx.getInputValue("SessFileName");
String sessionIdgen = (String)handlerCtx.getInputValue("SessionIdGen");
if((sessionConfig != null) && (sessionConfig.getSessionManagerConfig() != null)
&& (sessionConfig.getSessionManagerConfig().getManagerPropertiesConfig() != null)) {
ManagerPropertiesConfig mgrPropConfig = sessionConfig.getSessionManagerConfig().getManagerPropertiesConfig();
mgrPropConfig.setReapIntervalInSeconds(reapInterval);
mgrPropConfig.setMaxSessions(maxSessions);
mgrPropConfig.setSessionFileName(sessFileName);
mgrPropConfig.setSessionIdGeneratorClassname(sessionIdgen);
AMXUtil.editProperties(handlerCtx, mgrPropConfig);
}else{
String objName = "com.sun.appserv:type=configs,category=config";
String opername = "createManagerProperties";
String[] signature = {"javax.management.AttributeList", "java.util.Properties", "java.lang.String"};
AttributeList attrList = new AttributeList();
attrList.add(new Attribute("reap-interval-in-seconds", reapInterval));
attrList.add(new Attribute("max-sessions", maxSessions));
attrList.add(new Attribute("session-file-name", sessFileName));
attrList.add(new Attribute("session-id-generator-classname", sessionIdgen));
Properties props = new Properties();
Object[] params = {attrList, props, configName};
JMXUtil.invoke(objName, opername, params, signature);
sessionConfig = config.getWebContainerConfig().getSessionConfig();
ManagerPropertiesConfig mgrPropConfig = sessionConfig.getSessionManagerConfig().getManagerPropertiesConfig();
AMXUtil.editProperties(handlerCtx, mgrPropConfig);
//AMX API CAlls for the same - Not working currently
/*
if(sessionConfig == null)