I think I'm only using spring for transactions. Here's the configuration I
have:

    <bean name="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="transacted" value="true" />
        <property name="transactionManager" ref="jmsTxManager" />
        <property name="connectionFactory" ref="pooledConnectionFactory" />
    </bean>
    
    
    <bean id="PROPAGATION_REQUIRED"
class="org.apache.camel.spring.spi.SpringTransactionPolicy">
        <property name="transactionManager" ref="jmsTxManager"/>
        <property name="propagationBehaviorName"
value="PROPAGATION_REQUIRED"/>
    </bean>
    
    
    <bean id="PROPAGATION_REQUIRES_NEW"
class="org.apache.camel.spring.spi.SpringTransactionPolicy">
        <property name="transactionManager" ref="jmsTxManager"/>
        <property name="propagationBehaviorName"
value="PROPAGATION_REQUIRES_NEW"/>
    </bean>
    
    <bean name="jmsTxManager"
class="org.springframework.jms.connection.JmsTransactionManager">
        <property name="connectionFactory" ref="pooledConnectionFactory" />
    </bean>
    
    <bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
        <property name="maxConnections" value="8" />
        <property name="maximumActive" value="500" />
        <property name="connectionFactory" ref="activeMqConnectionFactory"
/>
    </bean>
    
    <bean id="activeMqConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="${amq.brokerURL}" />
    </bean>


--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQConnection-leak-tp4387316p4387524.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to