Hi, i am starting a broker via spring config and i would like to enable the LoggingBrokerPlugin it in. I am doing this via:
ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("activemq-spring.xml"); XBeanBrokerService broker = (XBeanBrokerService)app.getBean("broker"); BrokerPlugin[] plugins = broker.getPlugins(); List<BrokerPlugin> inList = new ArrayList<BrokerPlugin> (); if(plugins != null) { for(int i = 0; i < plugins.length; i++) { inList.add(plugins[i]); } } inList.add(new LoggingBrokerPlugin()); BrokerPlugin[] asArray = new BrokerPlugin[inList.size()]; for(int i = 0; i < inList.size(); i++) asArray[i] = inList.get(i); broker.setPlugins(asArray); try { broker.start(); } catch(Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } however, the logging plugin is not being loaded. i want to avoid the xbean way, because i dont want to run the maven build. is this possible? thanks, Saqib -- View this message in context: http://www.nabble.com/adding-a-broker-plugin-via-code-tf4863048s2354.html#a13916372 Sent from the ActiveMQ - User mailing list archive at Nabble.com.