Hi,
I found Camel AMQPComponent won't reconnect to Qpid queue after Qpid broker got
bounced. Below are my amqp configures. Please advise how to address this issue.
<bean id="pooledConnectionFactory"
class="org.apache.qpid.client.PooledConnectionFactory">
<property name="maxPoolSize" value="8"></property>
<property name="connectionTimeout" value="1000"></property>
<property name="connectionURLString"
value="amqp://${qpid.username}:${qpid.password}@/${qpid.virtualhost}?brokerlist='${qpid.host}:${qpid.port}'&retries=-1"></property>
</bean>
<bean id="amqp" class="org.apache.camel.component.amqp.AMQPComponent">
<property name="connectionFactory" ref="pooledConnectionFactory" />
</bean>
It works only when Camel starting up without Qpid broker up running but not
after Qpid borker got bounced.
[ERROR] 2019-05-24 09:26:27.048 [Camel (camel-1) thread #3 -
JmsConsumer[Q_Request]] DefaultJmsMessageListenerContainer - Could not refresh
JMS Connection for destination 'Q_Request' - retrying using
FixedBackOff{interval=5000, currentAttempts=29, maxAttempts=unlimited}. Cause:
Error creating connection: Connection refused: connect
[ERROR] 2019-05-24 09:26:34.058 [Camel (camel-1) thread #3 -
JmsConsumer[Q_Request]] DefaultJmsMessageListenerContainer - Could not refresh
JMS Connection for destination 'Q_Request' - retrying using
FixedBackOff{interval=5000, currentAttempts=30, maxAttempts=unlimited}. Cause:
Error creating connection: Connection refused: connect
[ERROR] 2019-05-24 09:26:41.068 [Camel (camel-1) thread #3 -
JmsConsumer[Q_Request]] DefaultJmsMessageListenerContainer - Could not refresh
JMS Connection for destination 'Q_Request' - retrying using
FixedBackOff{interval=5000, currentAttempts=31, maxAttempts=unlimited}. Cause:
Error creating connection: Connection refused: connect
Thank you,
Welly
-- This email and any attachments are for the designated recipient only and may
contain privileged, proprietary, trade secret or other forms of confidential
information. If you are not the intended recipient of this email, then any
dissemination, distribution, printing, copying or other use of the information
herein or in any attachment is strictly prohibited. If you have received this
email by mistake, then (i) please notify us immediately and (ii) delete the
email and all attachments. --