mirror of https://github.com/apache/activemq.git
make camel webapp behave nicely in secured broker environment
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@811364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db5cbc16ae
commit
f0a6c69d70
|
@ -25,17 +25,32 @@
|
||||||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
||||||
">
|
">
|
||||||
|
|
||||||
|
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
|
<property name="locations">
|
||||||
|
<value>file:${activemq.base}/conf/credentials.properties</value>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<camelContext xmlns="http://camel.apache.org/schema/spring">
|
<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>
|
<route>
|
||||||
<from uri="activemq:example.A"/>
|
<from uri="activemq:example.A"/>
|
||||||
<to uri="activemq:example.B"/>
|
<to uri="activemq:example.B"/>
|
||||||
</route>
|
</route>
|
||||||
</camelContext>
|
</camelContext>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Lets configure some Camel endpoints
|
||||||
|
|
||||||
|
http://activemq.apache.org/camel/components.html
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- configure the camel activemq component to use the current broker -->
|
<!-- configure the camel activemq component to use the current broker -->
|
||||||
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
|
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
|
||||||
<property name="exposeAllQueues" value="true"/>
|
|
||||||
<property name="connectionFactory">
|
<property name="connectionFactory">
|
||||||
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
|
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
|
||||||
<property name="brokerURL" value="vm://localhost?create=false&waitForStart=10000" />
|
<property name="brokerURL" value="vm://localhost?create=false&waitForStart=10000" />
|
||||||
|
|
Loading…
Reference in New Issue