Created
July 3, 2018 14:22
-
-
Save predic8/53ddc6e3fed3d5bc1cb6fdd28fe39daf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans | |
xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:spring="http://camel.apache.org/schema/spring" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://camel.apache.org/schema/spring | |
http://camel.apache.org/schema/spring/camel-spring.xsd"> | |
<spring:camelContext> | |
<spring:package>de.predic8.solutions</spring:package> | |
</spring:camelContext> | |
<bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> | |
<property name="brokerURL" value="tcp://localhost:61616"/> | |
</bean> | |
<bean id="pooledConnectionFactory" | |
class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start" | |
destroy-method="stop"> | |
<property name="maxConnections" value="8"/> | |
<property name="connectionFactory" ref="jmsConnectionFactory"/> | |
</bean> | |
<bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration"> | |
<property name="connectionFactory" ref="pooledConnectionFactory"/> | |
<property name="concurrentConsumers" value="10"/> | |
</bean> | |
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"> | |
<property name="configuration" | |
ref="jmsConfig"/> | |
<!-- <property name="transacted" value="true"/> | |
<property name="cacheLevelName" value="CACHE_CONSUMER"/> --> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment