git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@993024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-09-06 13:28:49 +00:00
parent 20118f2604
commit 8d283c5d39
3 changed files with 11 additions and 36 deletions

View File

@ -124,16 +124,11 @@
</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
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"/>

View File

@ -24,6 +24,12 @@
Include this file in your configuration to enable Camel
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
xmlns="http://www.springframework.org/schema/beans"

View File

@ -32,32 +32,6 @@
</property>
</bean>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<import resource="file:${activemq.base}/conf/camel.xml"/>
<!-- 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
-->
<!-- 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&amp;waitForStart=10000" />
<property name="userName" value="${activemq.username}"/>
<property name="password" value="${activemq.password}"/>
</bean>
</property>
</bean>
</beans>