| <div class="wiki-content maincontent"> |
| <p>It was often a bit harder than it might be to configure an ActiveMQ broker inside a Spring XML configuration file. We've just added a simple Spring FactoryBean to make this process much simpler...</p> |
| |
| <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> |
| <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[ |
| <!-- lets deploy an embedded broker in this spring.xml --> |
| <bean id="broker" class="org.activemq.spring.BrokerFactoryBean"> |
| <property name="config" value="classpath:foo/bar/broker.xml"/> |
| </bean> |
| ]]></script> |
| </div></div> |
| |
| <p>See <a shape="rect" href="../../../how-do-i-embed-a-broker-inside-a-connection.xml">more detail</a> or try the <a shape="rect" href="../../../spring-support.xml">Spring Support</a></p></div> |
| |