All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ools.camelot.camelot-activemq.2.4.9-20150103.source-code.camelot-extension.xml Maven / Gradle / Ivy

There is a newer version: 2.5.4
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://camel.apache.org/schema/spring
            http://camel.apache.org/schema/spring/camel-spring.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="failover:${jms.broker.list}"/>
        <property name="userName" value="${activemq.user}"></property>
        <property name="password" value="${activemq.password}"></property>
    </bean>

    <bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory"
          depends-on="camelot-camel-context" init-method="start" destroy-method="stop">
        <property name="timeBetweenExpirationCheckMillis" value="${activemq.pool.timeBetweenExpirationCheckMillis}"/>
        <property name="idleTimeout" value="${activemq.pool.idleTimeout}"/>
        <property name="maxConnections" value="${activemq.pool.maxConnections}"/>
        <property name="maximumActiveSessionPerConnection" value="${activemq.pool.maximumActiveSessionPerConnection}"/>
        <property name="connectionFactory" ref="jmsConnectionFactory"/>
        <property name="createConnectionOnStartup" value="${activemq.connect.on.startup}"/>
        <property name="reconnectOnException" value="${activemq.reconnect.on.exception}"/>
    </bean>

    <bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration">
        <property name="connectionFactory" ref="pooledConnectionFactory"/>
        <property name="transacted" value="false"/>
        <property name="testConnectionOnStartup" value="${activemq.connect.on.startup}"/>
    </bean>

    <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="configuration" ref="jmsConfig"/>
        <property name="testConnectionOnStartup" value="${activemq.connect.on.startup}"/>
    </bean>

    <bean id="camelot-uribuilder-activemq" class="ru.yandex.qatools.camelot.activemq.ActivemqPluginUriBuilder"/>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy