activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter van der Merwe" <>
Subject RE: Hosting a Broker inside .NET
Date Wed, 16 Aug 2006 18:33:12 GMT
Thanks for the quick response.

Any way of explicitly defining a path for the Xml Config File?

-----Original Message-----
From: James Strachan [] 
Sent: 16 August 2006 07:01 PM
Subject: Re: Hosting a Broker inside .NET

On 8/16/06, Pieter van der Merwe <> wrote:
> We're currently attempting to host an ActiveMQ Broker in .NET with

Cool! Haven't heard of anyone doing that yet - up to now folks have
only done the client. But the broker side should work too.

> The documentation state that this can be done with the following code:
> BrokerService broker = new BrokerService();
> // configure the broker
> broker.addConnector("tcp://localhost:61616");
> broker.start();
> Is there any mechanism of actually specifying an Xml Configuration
> to read ActiveMQ configuration properties, or should we use another
> mechanism?

You can use the BrokerFactory


BrokerService answer = factory.createBroker("broker.xml");

Where the broker.xml file is on your classpath.



View raw message