protected InternalCDOSession openRemoteSession() { CDOSessionConfiguration configuration = remoteSessionConfigurationFactory.createSessionConfiguration(); InternalCDOSession session = (InternalCDOSession)configuration.openSession(); CDORepositoryInfo repositoryInfo = session.getRepositoryInfo(); if (!repositoryInfo.isSupportingAudits()) { session.close(); throw new IllegalStateException("Remote repository does not support auditing"); } IDGenerationLocation remoteLocation = repositoryInfo.getIDGenerationLocation(); if (!remoteLocation.equals(idGenerationLocation)) { session.close(); throw new IllegalStateException("Remote repository uses different ID generation location: " + remoteLocation); } return session; }
CDOSessionConfiguration masterConfiguration = remoteSessionConfigurationFactory.createSessionConfiguration(); masterConfiguration.setBranchManager(localRepository.getBranchManager()); masterConfiguration.setPassiveUpdateMode(PassiveUpdateMode.ADDITIONS);