activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ipraveen <praveen.j...@tarmin.com>
Subject problem in getting Brokerregistry
Date Wed, 26 Dec 2007 13:45:35 GMT

hi
 i am trying to build a command line application for queue informatino
but i am unable to get Brokerregistry object and that iswhy unable to get
BrokerService.
my code is 
:
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(newurl);
Connection connection = connectionFactory.createConnection(); 
connection.start();
ActiveMQSession session =
(ActiveMQSession)connection.createSession(transacted,
Session.AUTO_ACKNOWLEDGE);
BrokerRegistry brkreg=new BrokerRegistry();
brokerService = BrokerRegistry.getInstance().findFirst();
System.out.println("Broker service that found 000000   "+brokerService);

Every time I AM GETING NULL IN brokerservice.
pls help me

-- 
View this message in context: http://www.nabble.com/problem-in-getting-Brokerregistry-tp14502321s2354p14502321.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message