I'm looking for a way to do this too... I would like to be able to purge a queue, but can't figure out how to get the BrokerService instance for the currently running broker.
Anyone? Thanks! CB silver1 wrote: > > Hi, > > I have a standalone ActiveMQ-Broker (started with activemq.bat). > In my code i use following: > > ActiveMQConnectionFactory cf = new > ActiveMQConnectionFactory(prop.getProperty("TCP")); > ActiveMQConnectionconnection = > (ActiveMQConnection)cf.createConnection(); > ActiveMQConnection connection.start(); > System.out.println(connection.getBrokerInfo().getBrokerId()); > > I get the BrokerId, but i find no option to get the Broker- or the > BrokerService-instance. > > Has anybody an Idea? > > -- View this message in context: http://www.nabble.com/get-Broker-from-ActiveMQConnectionFactory--tp21327599p22215702.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.