You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ashwin Karpe <ak...@fusesource.com> on 2010/12/10 13:07:09 UTC
Re: Camel ActiveMQ queue listener (consumer) drops after
inactivity.
Hi,
If you use a TCP connection to your broker, then you need to set keep-alives
on your broker connection and alter the default settings for
connectionTimeout etc as appropriate.
Please check out the link below and alter your connection URI appropriately.
http://activemq.apache.org/tcp-transport-reference.html
http://activemq.apache.org/tcp-transport-reference.html
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-queue-listener-consumer-drops-after-inactivity-tp3299709p3300203.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel ActiveMQ queue listener (consumer) drops after
inactivity.
Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,
The failover protocol is primarily meant for connections to failover to
another broker if the primary broker is down and not necessarily to deal
with connections that have closed sockets on the broker due to inactivity.
The fresh connection though may be established with a different broker and
if there are many such connections, then there is a cost to the clean up and
re-establishing of fresh connections. The better option i to use keep-alives
where you do not incur such costs and keep your existing connection to the
broker for as long as the broker is up and running.
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-queue-listener-consumer-drops-after-inactivity-tp3299709p3301513.html
Sent from the Camel - Users mailing list archive at Nabble.com.