@Override public void setManager(Manager manager) { if (manager instanceof ManagerBase) { ((ManagerBase) manager).setSessionIdGenerator(new LazySessionIdGenerator()); } super.setManager(manager); }
@Override public synchronized void setManager(Manager manager) { if(manager instanceof SipManager && sipApplicationDispatcher != null) { ((SipManager)manager).setMobicentsSipFactory( ((SipFactoryImpl)sipApplicationDispatcher.getSipFactory())); ((CatalinaSipManager)manager).setContainer(this); } if(manager instanceof DistributableSipManager) { hasDistributableManager = true; if(logger.isInfoEnabled()) { logger.info("this context contains a manager that allows applications to work in a distributed environment"); } } super.setManager(manager); }
@Override public synchronized void setManager(Manager manager) { if(manager instanceof SipManager && sipApplicationDispatcher != null) { ((SipManager)manager).setMobicentsSipFactory( sipApplicationDispatcher.getSipFactory()); ((CatalinaSipManager)manager).setContainer(this); } if(manager instanceof DistributableSipManager) { hasDistributableManager = true; if(logger.isInfoEnabled()) { logger.info("this context contains a manager that allows applications to work in a distributed environment"); } } super.setManager(manager); }
@Override public synchronized void setManager(Manager manager) { if(getManager() != null && !manager.equals(getManager())) { // http://code.google.com/p/mobicents/issues/detail?id=2794 : TimerService object from JDNI lookup or injection is never HATimerService. This means that timers scheduled using that object will not survive across cluster changes. // Avoid the DistributableSipManager set by TomcatConvergedDeployment to be overriden by JBossContextConfig.processContextConfig that reset the distributable manager. if(logger.isInfoEnabled()) { logger.info("this context already contains a manager " + getManager() + " not setting new manager " + manager); } return; } if(manager instanceof CatalinaSipManager && sipApplicationDispatcher != null) { ((SipManager)manager).setMobicentsSipFactory( sipApplicationDispatcher.getSipFactory()); ((CatalinaSipManager)manager).setContainer(this); } super.setManager(manager); if(manager instanceof DistributableSipManager) { hasDistributableManager = true; // if the logic comes unitl here, distributable is true, we set it to be able to start the FT timer services correctly on init setDistributable(true); if(logger.isInfoEnabled()) { logger.info("this context contains a manager that allows applications to work in a distributed environment"); } } }
if ((getCluster() != null) && distributable) { try { setManager(getCluster().createManager(getName())); } catch (Exception ex) { log.error("standardContext.clusterFail", ex); setManager(new StandardManager());
context.setManager(prepareClusterManager(clusterProp));
setManager(contextManager);
standardContext.setManager(mgr); } catch (final Exception e) { logger.error("can't instantiate '" + sessionManager + "', StandardManager will be used", e);
standardContext.setManager(mgr); } catch (Exception e) { logger.error("can't instantiate '" + sessionManager + "', StandardManager will be used", e);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
contextManager.getClass().getName())); setManager(contextManager);
setManager(contextManager);