2 connections are created as there are 2 camel routes instancited and they
will use each one a AMQP client object to connect to your AMQP broker.

As AMQP component exends the Camel JMS component and uses Spring JMS
Template with DefaultMessageListenerContainer , I suggest that you setup a
connectionFactory for performance reasons and have a look to the following
documentation pages

JMS component :  http://camel.apache.org/jms.html
http://camel.apache.org/jms.html 
Spring DMLC :
http://bsnyderblog.blogspot.be/2010/02/using-spring-to-receive-jms-messages.html

Regards,

Charles
Apache Committer

--
View this message in context: 
http://camel.465427.n5.nabble.com/Question-Why-are-2-connections-created-tp5715235p5715250.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to