Description
If I launch the broker with the below, without the first two lines, and call brokerService.stop(), I have 13 more threads after than I had when I started. This in spite of the code I see in the BrokerService class that claims to shut down the scheduler (and the scheduler is one of the threads).
brokerService.setSchedulerSupport(false); brokerService.setUseJmx(false); brokerService.setPersistenceAdapter(new MemoryPersistenceAdapter()); brokerService.setPersistent(false); brokerService.setUseShutdownHook(true); brokerService.setUseLoggingForShutdownErrors(false); brokerService.setSchedulerSupport(false); bindAddress = "tcp://localhost:" + getBrokerPort(); tcpTransport = brokerService.addConnector(bindAddress); brokerService.setDataDirectory(dataDirectory.getAbsolutePath()); brokerService.start();