activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From centis <centis_b...@hotmail.com>
Subject Re: get Broker from ActiveMQConnectionFactory?
Date Thu, 26 Feb 2009 01:12:26 GMT

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.


Mime
View raw message