activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Leyba" <xle...@gmail.com>
Subject Re: Create a broker with vm and tcp transport connectors
Date Fri, 05 May 2006 08:25:14 GMT
On 5/5/06, James Strachan <james.strachan@gmail.com> wrote:
>
> > Additionallly is there a way to programatically create the BrokerService
> > whilst using an xml file to configure the broker?
>
> Its one or the other. The XML file creates a BrokerService - or you
> can create it with Java.
>


Is this true ?

I'm creating a service with java that reads its config from a xml file !!!

----------
URI brokerURI = new URI("xbean:" +
System.getProperty("jboss.server.config.url") + "activemq_slave.xml");
            serviceSlave = BrokerFactory.createBroker(brokerURI);
            if (serviceSlave != null) {
                serviceSlave.start();
            }
------------


Am I wrong ?




--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

Mime
View raw message