File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed
Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 3131 <!--
3232 The <broker> element is used to configure the ActiveMQ broker.
3333 -->
34- <broker xmlns =" http://activemq.apache.org/schema/core" brokerName =" localhost" dataDirectory =" ${activemq.data}" >
34+ <broker id = " broker " xmlns =" http://activemq.apache.org/schema/core" brokerName =" localhost" dataDirectory =" ${activemq.data}" >
3535
3636 <destinationPolicy >
3737 <policyMap >
Original file line number Diff line number Diff line change 1515 An embedded servlet engine for serving up the Admin consoles, REST and Ajax APIs and
1616 some demos Include this file in your configuration to enable ActiveMQ web components
1717 e.g. <import resource="jetty.xml"/>
18+
19+ Note: the broker element in your configuration must have id="broker" set so that
20+ the Jetty server starts only after the broker is fully available.
21+ e.g. <broker id="broker" xmlns="http://activemq.apache.org/schema/core" ...>
1822 -->
1923<beans xmlns =" http://www.springframework.org/schema/beans" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2024 xsi : schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" >
208212 </property >
209213 </bean >
210214
211- <bean id =" invokeStart" class =" org.springframework.beans.factory.config.MethodInvokingFactoryBean"
212- depends-on =" configureJetty, invokeConnectors" >
215+ <bean id =" invokeStart" class =" org.springframework.beans.factory.config.MethodInvokingFactoryBean"
216+ depends-on =" configureJetty, invokeConnectors, broker " >
213217 <property name =" targetObject" ref =" Server" />
214218 <property name =" targetMethod" value =" start" />
215219 </bean >
Original file line number Diff line number Diff line change 4747 - Change the brokerName attribute to something unique
4848 -->
4949
50- <broker xmlns =" http://activemq.apache.org/schema/core" brokerName =" amq-broker" useJmx =" true" >
50+ <broker id = " broker " xmlns =" http://activemq.apache.org/schema/core" brokerName =" amq-broker" useJmx =" true" >
5151
5252 <!--
5353 Examples of destination-specific policies using destination
Original file line number Diff line number Diff line change 6363 </bean>
6464 -->
6565
66- <broker useJmx =" true" persistent =" false" xmlns =" http://activemq.apache.org/schema/core" >
66+ <broker id = " broker " useJmx =" true" persistent =" false" xmlns =" http://activemq.apache.org/schema/core" >
6767
6868 <managementContext >
6969 <managementContext createConnector =" true" >
Original file line number Diff line number Diff line change 4444 <!--
4545 The <broker> element is used to configure the ActiveMQ broker.
4646 -->
47- <broker xmlns =" http://activemq.apache.org/schema/core" brokerName =" localhost" dataDirectory =" ${activemq.data}" >
47+ <broker id = " broker " xmlns =" http://activemq.apache.org/schema/core" brokerName =" localhost" dataDirectory =" ${activemq.data}" >
4848
4949 <!--
5050 For better performances use VM cursor and small memory limit.
You can’t perform that action at this time.
0 commit comments