private void createWebContainerConfig(Config defaultConfig) throws TransactionFailure, XMLStreamException { while (true) { if (parser.next() == START_ELEMENT) { if (parser.getLocalName().equals("web-container")) { SessionManager sm = defaultConfig.getWebContainer().getSessionConfig().getSessionManager(); ConfigSupport.apply(new WebContainerConfigCode(), sm); break; } } } }
/** * Get the session manager bean from domain.xml * return null if not defined or other problem */ public SessionManager getInstanceSessionManager() { if (configBean == null) { return null; } WebContainer webContainerBean = configBean.getWebContainer(); if (webContainerBean == null) { return null; } SessionConfig sessionConfigBean = webContainerBean.getSessionConfig(); if (sessionConfigBean == null) { return null; } return sessionConfigBean.getSessionManager(); }
/** * Get the session properties bean from server.xml * return null if not defined or other problem */ public SessionProperties getInstanceSessionProperties() { if (configBean == null) { return null; } WebContainer webContainerBean = configBean.getWebContainer(); if (webContainerBean == null) { return null; } SessionConfig sessionConfigBean = webContainerBean.getSessionConfig(); if (sessionConfigBean == null) { return null; } return sessionConfigBean.getSessionProperties(); }
if (serverConfig.getWebContainer() != null) maxDepth = serverConfig.getWebContainer().getPropertyValue(DISPATCHER_MAX_DEPTH); if (maxDepth != null) { int depth = -1;