Broker XBean URI

Using ActiveMQ Classic > Configuring Transports > ActiveMQ Classic 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, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.