mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2203 - duplication of camel config
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@993024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
20118f2604
commit
8d283c5d39
|
@ -124,16 +124,11 @@
|
||||||
|
|
||||||
</broker>
|
</broker>
|
||||||
|
|
||||||
<!--
|
|
||||||
Uncomment to enable Camel
|
|
||||||
Take a look at activemq-camel.xml for more details
|
|
||||||
|
|
||||||
<import resource="camel.xml"/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Enable web consoles, REST and Ajax APIs and demos
|
Enable web consoles, REST and Ajax APIs and demos
|
||||||
Take a look at activemq-jetty.xml for more details
|
It also includes Camel (with its web console), see ${ACTIVEMQ_HOME}/conf/camel.xml for more info
|
||||||
|
|
||||||
|
Take a look at ${ACTIVEMQ_HOME}/conf/jetty.xml for more details
|
||||||
-->
|
-->
|
||||||
<import resource="jetty.xml"/>
|
<import resource="jetty.xml"/>
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
Include this file in your configuration to enable Camel
|
Include this file in your configuration to enable Camel
|
||||||
|
|
||||||
e.g. <import resource="camel.xml"/>
|
e.g. <import resource="camel.xml"/>
|
||||||
|
|
||||||
|
Note: this configuration is already included in a default configuration via Camel Web Console.
|
||||||
|
See ${ACTIVEMQ_HOME}/conf/jetty.xml for more info on how to disable it, in case you want to do so.
|
||||||
|
Also check ${ACTIVEMQ_HOME}/webapps/camel/WEB-INF/application-context.xml to see how this config is included in Camel Web Console
|
||||||
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<beans
|
<beans
|
||||||
xmlns="http://www.springframework.org/schema/beans"
|
xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
|
|
@ -31,33 +31,7 @@
|
||||||
<value>file:${activemq.base}/conf/credentials.properties</value>
|
<value>file:${activemq.base}/conf/credentials.properties</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
|
|
||||||
|
|
||||||
<!-- You can use a <package> element for each root package to search for Java routes -->
|
|
||||||
<package>org.foo.bar</package>
|
|
||||||
|
|
||||||
<!-- You can use Spring XML syntax to define the routes here using the <route> element -->
|
|
||||||
<route>
|
|
||||||
<from uri="activemq:example.A"/>
|
|
||||||
<to uri="activemq:example.B"/>
|
|
||||||
</route>
|
|
||||||
</camelContext>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Lets configure some Camel endpoints
|
|
||||||
|
|
||||||
http://activemq.apache.org/camel/components.html
|
<import resource="file:${activemq.base}/conf/camel.xml"/>
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- configure the camel activemq component to use the current broker -->
|
|
||||||
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
|
|
||||||
<property name="connectionFactory">
|
|
||||||
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
|
|
||||||
<property name="brokerURL" value="vm://localhost?create=false&waitForStart=10000" />
|
|
||||||
<property name="userName" value="${activemq.username}"/>
|
|
||||||
<property name="password" value="${activemq.password}"/>
|
|
||||||
</bean>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
</beans>
|
</beans>
|
||||||
|
|
Loading…
Reference in New Issue