2 Replies Latest reply on Jan 18, 2011 7:01 AM by praga K

    Starting an Embedded Broker using configuration file

    praga K Newbie

      Hi,

       

      I need to create a queue and start the broker service all in a configuration file.

      is that possible? The below source is used for creating a Embedded broker. Is it possible to specify the same in configuration file? My configuration file should specify the following

      1) ActiveMQ connection

      2) creation of queue

      3) creation of producer and consumer

       

      is it all possible in a single configuration xml file? if yes can anyone share me a sample

       

       

      BrokerService broker = new BrokerService();

      broker.addConnector("tcp://localhost:61616");

      broker.start();