activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <bruce.sny...@gmail.com>
Subject Re: Configuring Embedded Broker with Spring/JBoss JMX issues
Date Thu, 02 Oct 2008 13:08:34 GMT
On Thu, Oct 2, 2008 at 3:37 AM, Dejan Bosanac
<dejan.bosanac@ttmsolutions.com> wrote:
> If you are taking this route, you can try defining your broker
> configuration in a separate xml file and do something like
>
> BrokerService broker = BrokerFactory.createBroker(new
> URI("xbean:activemq.xml"));
> broker.start();
>
> it will be easier to configure it that way.

Use of the BrokerFactoryBean is also very easy with the activemq.xml:

BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new
ClassPathResource("path/to/activemq.xml"));
brokerFactory.afterPropertiesSet();
BrokerService broker = brokerFactory.getBroker();

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Mime
View raw message