activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: Hosting a Broker inside .NET
Date Thu, 17 Aug 2006 04:45:35 GMT
Actually,

If your using the org.apache.activemq.broker.BrokerFactory then the
URI would more like:
"xbean:file:/path/to/file.xml"


On 8/16/06, James Strachan <james.strachan@gmail.com> wrote:
> On 8/16/06, Pieter van der Merwe <pvanderm@theenablergroup.com> wrote:
> > Thanks for the quick response.
> >
> > Any way of explicitly defining a path for the Xml Config File?
>
> use a Java style URL such as http://foo.bar.xml or file:///foo.xml
>
>
> > -----Original Message-----
> > From: James Strachan [mailto:james.strachan@gmail.com]
> > Sent: 16 August 2006 07:01 PM
> > To: activemq-users@geronimo.apache.org
> > Subject: Re: Hosting a Broker inside .NET
> >
> > On 8/16/06, Pieter van der Merwe <pvanderm@theenablergroup.com> wrote:
> > > We're currently attempting to host an ActiveMQ Broker in .NET with
> > > IKVM.NET
> >
> > 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
> > file
> > > to read ActiveMQ configuration properties, or should we use another
> > > mechanism?
> >
> > You can use the BrokerFactory
> > http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apa
> > che/activemq/broker/BrokerFactory.html#createBroker(java.net.URI)
> >
> > e.g.
> >
> > BrokerService answer = factory.createBroker("broker.xml");
> >
> > Where the broker.xml file is on your classpath.
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
> >
>
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Mime
View raw message