This is part of an OSGi blueprint xml file.



        <bean id="myConnectionFactory"
class="org.apache.qpid.client.AMQConnectionFactory">
                <argument
value="amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'"
/> 
        </bean>
                
        <bean id="cachingConnectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
                <property name="targetConnectionFactory" 
ref="myConnectionFactory"/>
        </bean>



        <bean id="mybroker" 
class="org.apache.camel.component.amqp.AMQPComponent">
                <property name="connectionFactory" 
ref="cachingConnectionFactory"/>
                <property name="cacheLevel" value="2"/>  
        </bean>


        

    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
             <endpoint id="queue23" uri="mybroker:queue:Q_23"/>
             <route>
                        <from uri="direct-vm:q_23" />
                        <to ref="queue23" />
                 </route>
    </camelContext>




/Lars



--
View this message in context: 
http://camel.465427.n5.nabble.com/Connection-pooling-with-camel-amqp-tp5716936p5716941.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to