@Override public void initialize() throws ConnectorDataTransmissionException { this.broker = new BrokerService(); this.broker.setUseJmx(true); try { this.broker.addConnector("tcp://localhost:" + this.port); this.broker.start(); super.initialize(); // Cannot be avoided as the broker throws Exception. } catch (final Exception e) { // NOCS, NOPMD throw new ConnectorDataTransmissionException(e.getMessage(), e); } }
@Override public void initialize() throws ConnectorDataTransmissionException { this.broker = new BrokerService(); this.broker.setUseJmx(true); try { this.broker.addConnector("tcp://localhost:" + this.port); this.broker.start(); super.initialize(); // Cannot be avoided as the broker throws Exception. } catch (final Exception e) { // NOCS, NOPMD throw new ConnectorDataTransmissionException(e.getMessage(), e); } }