container/resource/src/main/java/org/mobicents/slee/resource/ResourceAdaptorEntityImpl.java
private void scheduleAllActivitiesEnd() throws TransactionRequiredLocalException {

		// schedule the end of all activities if the node is the single member of the cluster
		boolean skipActivityEnding = !sleeContainer.getCluster().isSingleMember();
		
		if (!skipActivityEnding && hasActivities()) {
			logger.info("RA entity "+name+" activities end scheduled.");
			timerTask = new EndAllActivitiesRAEntityTimerTask(this,sleeContainer);
		}
		else {
			allActivitiesEnded();
		}
	}
private void scheduleAllActivitiesEnd() throws TransactionRequiredLocalException {

		// schedule the end of all activities if the node is the single member of the cluster
		boolean skipActivityEnding = !sleeContainer.getCluster().isSingleMember();
		
		if (!skipActivityEnding && hasActivities()) {
			logger.info("RA entity "+name+" activities end scheduled.");
			timerTask = new EndAllActivitiesRAEntityTimerTask(this,sleeContainer);
		}
		else {
			allActivitiesEnded();
		}
	}
private void scheduleAllActivitiesEnd ( ) throws TransactionRequiredLocalException { // schedule the end of all activities if the node is the single member of the cluster
 boolean skipActivityEnding = ! sleeContainer . getCluster ( ) . isSingleMember ( ) ; if ( ! skipActivityEnding && hasActivities ( ) ) { logger . info ( "RA entity " + name + " activities end scheduled." ) ; timerTask = new EndAllActivitiesRAEntityTimerTask ( this , sleeContainer ) ; } else { allActivitiesEnded ( ) ; } }
schedules the ending of all the entity activities, this is needed on ra
entity deactivation or slee container stop, once the process ends it will
invoke allActivitiesEnded to complete those processes
@throws TransactionRequiredLocalException
schedules the ending of all the entity activities this is needed on ra entity deactivation or slee container stop once the process ends it will invoke allActivitiesEnded to complete those processes