*/
try {
SSOFactory ssoFactory = webContainerFeatureFactory.getSSOFactory();
//SingleSignOn sso = ssoFactory.createSingleSignOnValve();
String vsName = this.getName();
SingleSignOn sso = ssoFactory.createSingleSignOnValve(vsName);
// set max idle time if given
ElementProperty idle =
vsBean.getElementPropertyByName(SSO_MAX_IDLE);
if (idle != null && idle.getValue() != null) {
_logger.fine("SSO entry max idle time set to: " +
idle.getValue());
int i = Integer.parseInt(idle.getValue());
sso.setMaxInactive(i);
}
// set expirer thread sleep time if given
ElementProperty expireTime =
vsBean.getElementPropertyByName(SSO_REAP_INTERVAL);
if (expireTime !=null && expireTime.getValue() != null) {
_logger.fine("SSO expire thread interval set to : " +
expireTime.getValue());
int i = Integer.parseInt(expireTime.getValue());
sso.setReapInterval(i);
}
// Remove existing SSO valve (if any), in case of a reconfig
Valve[] valves = getValves();
for (int i=0; valves!=null && i<valves.length; i++) {