@Override protected void makeDlqConsumer() throws Exception { dlqDestination = createDlqDestination(); dlqConnection = getConnectionFactory().createConnection("system", "manager"); dlqConnection.start(); dlqSession = dlqConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); dlqConsumer = dlqSession.createConsumer(dlqDestination); }
@Override public void tearDown() throws Exception { if (dlqConnection != null) { dlqConnection.close(); } super.tearDown(); }