* @throws Exception
*/
@Override
protected void startServers() throws Exception
{
backupConf = new ConfigurationImpl();
backupConf.setJournalType(getDefaultJournalType());
backupConf.setSecurityEnabled(false);
backupParams.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
backupConf.getAcceptorConfigurations()
.add(new TransportConfiguration("org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory", backupParams));
backupConf.setBackup(true);
backupConf.setSharedStore(false);
backupConf.setBindingsDirectory(getBindingsDir(0, true));
backupConf.setJournalMinFiles(2);
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");