117118119120121122123124125126127
@Override public void update(Observable o, Object arg) { if (arg.equals(BrokerPool.SIGNAL_SHUTDOWN)) { Stop command = new Stop(session, ""); command.exec(); //TODO: make sure that session is closed? what can be done if not? } }