activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: problem in getting Brokerregistry
Date Mon, 31 Dec 2007 17:25:54 GMT
Whats the value of newurl?


On 26/12/2007, Ipraveen <praveen.jain@tarmin.com> wrote:
>
> 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.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message