/**
* Makes sure that in the SipContainer configuration the default Stack is defined.
*/
public static void defineStatic() {
Config config = ConfigFactory.getConfig();
//Please make sure that the comments are inline with the code,
// else remove the comments to not introduce confusion.
// <stack-config layer-order="NetworkManager, ConvergedLoadBalancerFactory, SipLoadBalancerManagerBackEnd, TransactionManager, ReplicationManager, ResolverManager, DialogManager, LocalRouteManager, ApplicationDispatcher">
config.set(STACK_CONFIG, LAYER_ORDER_KEY, "NetworkManager, OutboundManager, OverloadProtectionManager, ConvergedLoadBalancerFactory, SipLoadBalancerManagerBackEnd, TransactionManager, ReplicationManager, ResolverManager, DialogManager, LocalRouteManager, ApplicationDispatcher");
// <stack-layer id="NetworkManager" class-name="com.ericsson.ssa.container.NetworkManager">
// <property name="reporters" value="CallflowReporter, SipMessageReporter"/>
// </stack-layer>
config.set(STACK_LAYER+"/NetworkManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.NetworkManager");
if (!disableReporters) {
config.set(STACK_LAYER+"/NetworkManager"+PROPERTIES, REPORTERS_KEY, "SMINetworkManagerReporter, CallFlowRequestReporter, AccessLogReporter");
}
config.set(STACK_LAYER+"/OutboundManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.OutboundFlowManager");
//config.set(STACK_LAYER+"/OutboundManager"+PROPERTIES, REPORTERS_KEY, "CallflowReporter, SipMessageReporter");
config.set(STACK_LAYER+"/OverloadProtectionManager", CLASS_NAME_KEY, "com.ericsson.ssa.container.overload.OverloadProtectionManager");
config.set(STACK_LAYER+"/OverloadProtectionManager"+PROPERTIES, HTTP_LAYER_INDICATOR_KEY, "true");
//
// <stack-layer id="ConvergedLoadBalancerFactory" class-name="org.jvnet.glassfish.comms.clb.core.ConvergedLoadBalancerFactory">
// <property name="httpLayer" value="true"/>
// </stack-layer>
config.set(STACK_LAYER+"/ConvergedLoadBalancerFactory", CLASS_NAME_KEY, "org.jvnet.glassfish.comms.clb.core.ConvergedLoadBalancerFactory");
config.set(STACK_LAYER+"/ConvergedLoadBalancerFactory"+PROPERTIES, HTTP_LAYER_INDICATOR_KEY, "true");
//
// <stack-layer id="SipLoadBalancerManagerBackEnd" class-name="org.jvnet.glassfish.comms.clb.core.sip.SipLoadBalancerManagerBackEnd">
// </stack-layer>
config.set(STACK_LAYER+"/SipLoadBalancerManagerBackEnd", CLASS_NAME_KEY, "org.jvnet.glassfish.comms.clb.core.sip.SipLoadBalancerManagerBackEnd");
//
// <stack-layer id="TransactionManager" class-name="com.ericsson.ssa.sip.transaction.TransactionManager">
// </stack-layer>
config.set(STACK_LAYER+"/TransactionManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.transaction.TransactionManager");
//
// <stack-layer id="ReplicationManager" class-name="com.ericsson.ssa.sip.persistence.ReplicationManager">
// </stack-layer>
config.set(STACK_LAYER+"/ReplicationManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.persistence.ReplicationManager");
//
// <stack-layer id="ResolverManager" class-name="com.ericsson.ssa.sip.dns.ResolverManager">
// </stack-layer>
config.set(STACK_LAYER+"/ResolverManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.dns.ResolverManager");
//
// <stack-layer id="DialogManager" class-name="com.ericsson.ssa.sip.DialogManager">
// <property name="FactoryClassName" value="com.ericsson.ssa.sip.DialogManager"/>
// </stack-layer>
config.set(STACK_LAYER+"/DialogManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.DialogManager");
config.set(STACK_LAYER+"/DialogManager"+PROPERTIES, FACTORY_CLASS_NAME_KEY, "com.ericsson.ssa.sip.DialogManager");
//
// <stack-layer id="LocalRouteManager" class-name="com.ericsson.ssa.sip.LocalRouteManager">
// </stack-layer>
config.set(STACK_LAYER+"/LocalRouteManager", CLASS_NAME_KEY, "com.ericsson.ssa.sip.LocalRouteManager");
//
// <stack-layer id="ApplicationDispatcher" class-name="com.ericsson.ssa.container.sim.ApplicationDispatcher">
// <property name="applicationRouterClass" value="com.ericsson.ssa.router.AlphabeticalRouter"/>
// </stack-layer>
config.set(STACK_LAYER+"/ApplicationDispatcher", CLASS_NAME_KEY, "com.ericsson.ssa.container.sim.ApplicationDispatcher");
config.set(STACK_LAYER+"/ApplicationDispatcher"+PROPERTIES, "applicationRouterClass", "com.ericsson.ssa.router.AlphabeticalRouter");
if (!disableReporters) {
config.set(STACK_LAYER+"/ApplicationDispatcher"+PROPERTIES, REPORTERS_KEY, "SMIServletReporter, CallFlowWebMethodReporter");
}
// </stack-config>
if (log.isLoggable(Level.FINE)) {