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,23 +25,38 @@
|
||||||
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">
|
||||||
<route>
|
|
||||||
<from uri="activemq:example.A"/>
|
|
||||||
<to uri="activemq:example.B"/>
|
|
||||||
</route>
|
|
||||||
</camelContext>
|
|
||||||
|
|
||||||
<!-- configure the camel activemq component to use the current broker -->
|
<!-- You can use a <package> element for each root package to search for Java routes -->
|
||||||
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
|
<package>org.foo.bar</package>
|
||||||
<property name="exposeAllQueues" value="true"/>
|
|
||||||
<property name="connectionFactory">
|
<!-- You can use Spring XML syntax to define the routes here using the <route> element -->
|
||||||
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
|
<route>
|
||||||
<property name="brokerURL" value="vm://localhost?create=false&waitForStart=10000" />
|
<from uri="activemq:example.A"/>
|
||||||
<property name="userName" value="${activemq.username}"/>
|
<to uri="activemq:example.B"/>
|
||||||
<property name="password" value="${activemq.password}"/>
|
</route>
|
||||||
</bean>
|
</camelContext>
|
||||||
</property>
|
|
||||||
</bean>
|
<!--
|
||||||
|
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&waitForStart=10000" />
|
||||||
|
<property name="userName" value="${activemq.username}"/>
|
||||||
|
<property name="password" value="${activemq.password}"/>
|
||||||
|
</bean>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
</beans>
|
</beans>
|
||||||
|
|
Loading…
Reference in New Issue