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
© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram