Azure / Azure/azure-service-bus-java
Consumer Fails to Reconnect and Consume Messages with Apache Qpid JMS Client (Version 0.51.0)
- Dominant language
- Java
- Stars
- 62
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
## Actual Behavior
I'm currently using the Apache Qpid JMS client version `0.51.0` and have configured the connection factory with the following settings:
- `cachingConnectionFactory.setReconnectOnException(true);`
- `cachingConnectionFactory.setCacheProducers(false);`
- `cachingConnectionFactory.setCacheConsumers(false);`
However, I'm encountering an issue where the producer successfully sends messages, but the listener/consumer is not able to consume these messages. Instead, the connection is closed with the following error:
[QpidJMS Connection Executor: ID:] [o.s.j.c.CachingConnectionFactory.onException.366 - Encountered a JMSException - resetting the underlying JMS Connection]
org.apache.qpid.jms.JmsConnectionRemotelyClosedException: The connection was inactive for more than the allowed 300000 milliseconds and is closed by container 'LinkTracker'. TrackingId:, SystemTracker:gateway5, Timestamp:2023-08-18T10:53:24 [condition = amqp:connection:forced]
## Expected Behavior
I expect the consumer to reconnect and consume messages successfully after the producer sends them.
## Versions
- Maven package version or commit ID: `org.apache.qpid:qpid-jms-client:0.51.0`
This issue is causing messages to remain in an "inProgress" status, and I need assistance in resolving this problem. Any guidance or insights into why the consumer is not able to reconnect and consume messages would be greatly appreciated.
Contributor guide
Assessment
This issue has not been assessed yet.