/** @throws Exception */ protected void createJMSStorage() throws Exception { jmsJournal = new JMSJournalStorageManagerImpl( new TimeAndCounterIDGenerator(), createDefaultInVMConfig(), null); addActiveMQComponent(jmsJournal); jmsJournal.start(); jmsJournal.load(); }
@Override @After public void tearDown() throws Exception { Exception exception = null; if (journal != null) { try { journal.stop(); } catch (Exception e) { exception = e; } journal = null; } if (jmsJournal != null) { try { jmsJournal.stop(); } catch (Exception e) { if (exception != null) exception = e; } jmsJournal = null; } destroyTables(Arrays.asList(new String[] {"MESSAGE", "BINDINGS", "LARGE_MESSAGE"})); super.tearDown(); if (exception != null) throw exception; }