| <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> |
| |
| <structured-macro ac:macro-id="829c32f2-1ea0-485c-b13b-7bc52e046144" ac:name="code" ac:schema-version="1"><parameter ac:name="">xml</parameter><plain-text-body> |
| <!-- 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> |
| </plain-text-body></structured-macro> |
| |
| <p>See <link><page ri:content-title="How do I embed a Broker inside a Connection"></page><link-body>more detail</link-body></link> or try the <link><page ri:content-title="Spring Support"></page></link></p></div> |
| |