spring configuring embedded BrokerService
问题 i would like to configure embedded ActiveMQ broker service inside spring mvc application. Here is my configuration @Configuration @EnableJms public class JmsConfiguration { @Bean(initMethod = "start", destroyMethod = "stop") public BrokerService brokerService() throws Exception { BrokerService brokerService = new BrokerService(); brokerService.setPersistent(false); brokerService.setUseJmx(false); brokerService.addConnector("vm://localhost:0"); brokerService.setBrokerName("broker");