Broker XBean URI

Using ActiveMQ > Configuring Transports > ActiveMQ Connection URIs > Broker Configuration URI > Broker XBean URI

Broker XBean URI

The Broker XBean URI allows you to run a configured broker by referencing an Xml Configuration on the classpath. The URI points to an XML document which can be parsed via XBean or Spring. This URI is typically on the classpath; though in 4.2 onwards you can point to a file or URL as well.

Syntax

Syntax Description
xbean:classPathResource Where classPathResource is some name which is resolved on the classpath and interpreted to be an XML document.
xbean:file:filePathResource Where filePathResource is some name which is resolved on the file system and interpreted to be an XML document.
xbean:urlResource Where urlResource is some resource which points to an XML document
Example URI

The following example starts up a broker using the activemq.xml configuration file which is on the classpath

xbean:activemq.xml

The following example starts up a broker using the activemq.xml configuration file which is in the current directory

xbean:file:./activemq.xml

Apache ActiveMQ, ActiveMQ, ActiveMQ Artemis, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2019, The Apache Software Foundation. Licensed under Apache License 2.0.