Whats the value of newurl?
On 26/12/2007, Ipraveen <[EMAIL PROTECTED]> 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