public void start() throws SipCacheException {
		cluster.getMobicentsCache().startCache();
		dialogsCacheData = new SIPDialogCacheData(Fqn.fromElements(name,SipCache.DIALOG_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
		dialogsCacheData.create();		
		dialogDataRemovalListener = new DialogDataRemovalListener(dialogsCacheData.getNodeFqn(), clusteredSipStack);
		cluster.addDataRemovalListener(dialogDataRemovalListener);
		if(clusteredSipStack.getReplicationStrategy() == ReplicationStrategy.EarlyDialog) {
			serverTransactionCacheData = new ServerTransactionCacheData(Fqn.fromElements(name,SipCache.SERVER_TX_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
			serverTransactionCacheData.create();
			serverTransactionDataRemovalListener = new ServerTransactionDataRemovalListener(serverTransactionCacheData.getNodeFqn(), clusteredSipStack);
			cluster.addDataRemovalListener(serverTransactionDataRemovalListener);
			clientTransactionCacheData = new ClientTransactionCacheData(Fqn.fromElements(name,SipCache.CLIENT_TX_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
			clientTransactionCacheData.create();
			clientTransactionDataRemovalListener = new ClientTransactionDataRemovalListener(clientTransactionCacheData.getNodeFqn(), clusteredSipStack);
			cluster.addDataRemovalListener(clientTransactionDataRemovalListener);
		}
		if (serializationClassLoader != null) {
			Region region = getMobicentsCache().getJBossCache().getRegion(dialogsCacheData.getNodeFqn(),true);
			region.registerContextClassLoader(serializationClassLoader);
			region.activate();
			if(clusteredSipStack.getReplicationStrategy() == ReplicationStrategy.EarlyDialog) {
				Region stxRegion = getMobicentsCache().getJBossCache().getRegion(serverTransactionCacheData.getNodeFqn(),true);
				stxRegion.registerContextClassLoader(serializationClassLoader);
				stxRegion.activate();
				Region ctxRegion = getMobicentsCache().getJBossCache().getRegion(clientTransactionCacheData.getNodeFqn(),true);
				ctxRegion.registerContextClassLoader(serializationClassLoader);
				ctxRegion.activate();
			}
		}
	}
public void start() throws SipCacheException {
		cluster.getMobicentsCache().startCache();
		dialogsCacheData = new SIPDialogCacheData(Fqn.fromElements(name,SipCache.DIALOG_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
		dialogsCacheData.create();		
		dialogDataRemovalListener = new DialogDataRemovalListener(dialogsCacheData.getNodeFqn(), clusteredSipStack);
		cluster.addDataRemovalListener(dialogDataRemovalListener);
		if(clusteredSipStack.getReplicationStrategy() == ReplicationStrategy.EarlyDialog) {
			serverTransactionCacheData = new ServerTransactionCacheData(Fqn.fromElements(name,SipCache.SERVER_TX_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
			serverTransactionCacheData.create();
			serverTransactionDataRemovalListener = new ServerTransactionDataRemovalListener(serverTransactionCacheData.getNodeFqn(), clusteredSipStack);
			cluster.addDataRemovalListener(serverTransactionDataRemovalListener);
			clientTransactionCacheData = new ClientTransactionCacheData(Fqn.fromElements(name,SipCache.CLIENT_TX_PARENT_FQN_ELEMENT),cluster.getMobicentsCache(), clusteredSipStack);
			clientTransactionCacheData.create();
			clientTransactionDataRemovalListener = new ClientTransactionDataRemovalListener(clientTransactionCacheData.getNodeFqn(), clusteredSipStack);
			cluster.addDataRemovalListener(clientTransactionDataRemovalListener);
		}
		if (serializationClassLoader != null) {
			Region region = getMobicentsCache().getJBossCache().getRegion(dialogsCacheData.getNodeFqn(),true);
			region.registerContextClassLoader(serializationClassLoader);
			region.activate();
			if(clusteredSipStack.getReplicationStrategy() == ReplicationStrategy.EarlyDialog) {
				Region stxRegion = getMobicentsCache().getJBossCache().getRegion(serverTransactionCacheData.getNodeFqn(),true);
				stxRegion.registerContextClassLoader(serializationClassLoader);
				stxRegion.activate();
				Region ctxRegion = getMobicentsCache().getJBossCache().getRegion(clientTransactionCacheData.getNodeFqn(),true);
				ctxRegion.registerContextClassLoader(serializationClassLoader);
				ctxRegion.activate();
			}
		}
	}
public void start ( ) throws SipCacheException { cluster . getMobicentsCache ( ) . startCache ( ) ; dialogsCacheData = new SIPDialogCacheData ( Fqn . fromElements ( name , SipCache . DIALOG_PARENT_FQN_ELEMENT ) , cluster . getMobicentsCache ( ) , clusteredSipStack ) ; dialogsCacheData . create ( ) ; dialogDataRemovalListener = new DialogDataRemovalListener ( dialogsCacheData . getNodeFqn ( ) , clusteredSipStack ) ; cluster . addDataRemovalListener ( dialogDataRemovalListener ) ; if ( clusteredSipStack . getReplicationStrategy ( ) == ReplicationStrategy . EarlyDialog ) { serverTransactionCacheData = new ServerTransactionCacheData ( Fqn . fromElements ( name , SipCache . SERVER_TX_PARENT_FQN_ELEMENT ) , cluster . getMobicentsCache ( ) , clusteredSipStack ) ; serverTransactionCacheData . create ( ) ; serverTransactionDataRemovalListener = new ServerTransactionDataRemovalListener ( serverTransactionCacheData . getNodeFqn ( ) , clusteredSipStack ) ; cluster . addDataRemovalListener ( serverTransactionDataRemovalListener ) ; clientTransactionCacheData = new ClientTransactionCacheData ( Fqn . fromElements ( name , SipCache . CLIENT_TX_PARENT_FQN_ELEMENT ) , cluster . getMobicentsCache ( ) , clusteredSipStack ) ; clientTransactionCacheData . create ( ) ; clientTransactionDataRemovalListener = new ClientTransactionDataRemovalListener ( clientTransactionCacheData . getNodeFqn ( ) , clusteredSipStack ) ; cluster . addDataRemovalListener ( clientTransactionDataRemovalListener ) ; } if ( serializationClassLoader != null ) { Region region = getMobicentsCache ( ) . getJBossCache ( ) . getRegion ( dialogsCacheData . getNodeFqn ( ) , true ) ; region . registerContextClassLoader ( serializationClassLoader ) ; region . activate ( ) ; if ( clusteredSipStack . getReplicationStrategy ( ) == ReplicationStrategy . EarlyDialog ) { Region stxRegion = getMobicentsCache ( ) . getJBossCache ( ) . getRegion ( serverTransactionCacheData . getNodeFqn ( ) , true ) ; stxRegion . registerContextClassLoader ( serializationClassLoader ) ; stxRegion . activate ( ) ; Region ctxRegion = getMobicentsCache ( ) . getJBossCache ( ) . getRegion ( clientTransactionCacheData . getNodeFqn ( ) , true ) ; ctxRegion . registerContextClassLoader ( serializationClassLoader ) ; ctxRegion . activate ( ) ; } } }
/*
(non-Javadoc)
@see org.mobicents.ha.javax.sip.cache.SipCache#start()
/ * ( non - Javadoc )