| <div class="wiki-content maincontent"> |
| <h3>Overview</h3> |
| |
| <p>In ActiveMQ 4, we are using a new xml format to configure the broker.</p> |
| |
| |
| <h3>Syntax</h3> |
| |
| <p>The following xsd describes the syntax of the broker configuration file.</p> |
| |
| <p><link><attachment ri:filename="activemq-4.0.xsd"></attachment></link></p> |
| |
| <p>And here is the reference documentation for that xsd file.</p> |
| |
| <p><link><attachment ri:filename="activemq-4.0.xsd.html"></attachment></link></p> |
| |
| <h3>Example</h3> |
| |
| <structured-macro ac:macro-id="678b9187-119f-47cf-ada5-eb85cee61646" ac:name="code" ac:schema-version="1"><parameter ac:name="">xml</parameter><plain-text-body> |
| <beans xmlns="http://activemq.org/config/1.0"> |
| |
| <broker useJmx="true"> |
| |
| <persistenceAdapter> |
| <journaledJDBC journalLogFiles="5" dataDirectory="../data"/> |
| </persistenceAdapter> |
| |
| <transportConnectors> |
| <transportConnector uri="discovery:tcp://localhost:61616"/> |
| </transportConnectors> |
| |
| <networkConnectors> |
| <networkConnector uri="multicast"/> |
| </networkConnectors> |
| |
| </broker> |
| |
| </beans> |
| </plain-text-body></structured-macro></div> |
| |