backupConf.setJournalDirectory(getJournalDir(0, true));
backupConf.setPagingDirectory(getPageDir(0, true));
backupConf.setLargeMessagesDirectory(getLargeMessagesDir(0, true));
backupService = HornetQServers.newHornetQServer(backupConf, true);
backupJMSService = new JMSServerManagerImpl(backupService);
backupJMSService.setContext(ctx2);
backupJMSService.start();
liveConf = new ConfigurationImpl();
liveConf.setSecurityEnabled(false);
liveConf.setJournalType(getDefaultJournalType());
liveConf.getConnectorConfigurations().put("toBackup", new TransportConfiguration(INVM_CONNECTOR_FACTORY, backupParams));
liveConf.setBackupConnectorName("toBackup");
liveConf.getAcceptorConfigurations()
.add(new TransportConfiguration("org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory"));
liveConf.setSharedStore(false);
liveConf.setBindingsDirectory(getBindingsDir(0, false));
liveConf.setJournalMinFiles(2);
liveConf.setJournalDirectory(getJournalDir(0, false));
liveConf.setPagingDirectory(getPageDir(0, false));
liveConf.setLargeMessagesDirectory(getLargeMessagesDir(0, false));
liveService = HornetQServers.newHornetQServer(liveConf, true);
liveJMSService = new JMSServerManagerImpl(liveService);
liveJMSService.setContext(ctx1);
liveJMSService.start();