It should be possible to instantiate an embedded broker by creating a spring
bean definition like the following:

                        <bean id="broker" 
class="org.apache.activemq.broker.BrokerService"
init-method="start">
                                <property name="brokerName" 
value="${broker.name}" />
                                <property name="persistent" value="false" />
                                <property name="dataDirectory" 
value="${broker.data}" />
                                <property name="transportConnectors">
                                        <list>
                                                <bean 
class="org.apache.activemq.broker.TransportConnector">
                                                        <property name="uri" 
value="${broker.uri}" />
                                                </bean>
                                        </list>
                                </property>
                        </bean>

Is there any gotchas involved in doing it this way?
--
View this message in context: 
http://www.nabble.com/instantiating-an-embedded-broker-in-spring--t1581473.html#a4292292
Sent from the ActiveMQ - User forum at Nabble.com.

Reply via email to