activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Pepper <...@pepper.id.au>
Subject instantiating an embedded broker in spring?
Date Tue, 09 May 2006 01:51:24 GMT

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.


Mime
View raw message