layout: default_md title: Broker XBean URI title-class: page-title-activemq5 type: activemq5

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

SyntaxDescription
xbean:classPathResourceWhere classPathResource is some name which is resolved on the classpath and interpreted to be an XML document.
xbean:file:filePathResourceWhere filePathResource is some name which is resolved on the file system and interpreted to be an XML document.
xbean:urlResourceWhere 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