-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The reply-to container is initialized lazily and shouldn't be binding its routing connection factory key to the calling thread #1091
Comments
Can you explain your use of the It turns out that this code is required in order to use the correct The problem is that the Is there any way you can avoid using the |
Fixes spring-projects#1091 The DMLC can open a connection on the calling thread (e.g. `start()`, `setConsumersPerQueue()`). When using a routing connection factory, the factory key is temporarily bound to the thread for proper CF selection in connection listeners (e.g. `RabbitAdmin`). This is disallowed if the calling thread is, itself, a listener container thread. Add `push/pop` operations to `SimpleResourceHolder`. **cherry-pick to 2.1.x**
I found a solution. |
Fixes spring-projects#1091 The DMLC can open a connection on the calling thread (e.g. `start()`, `setConsumersPerQueue()`). When using a routing connection factory, the factory key is temporarily bound to the thread for proper CF selection in connection listeners (e.g. `RabbitAdmin`). This is disallowed if the calling thread is, itself, a listener container thread. Add `push/pop` operations to `SimpleResourceHolder`. **cherry-pick to 2.1.x**
Fixes #1091 The DMLC can open a connection on the calling thread (e.g. `start()`, `setConsumersPerQueue()`). When using a routing connection factory, the factory key is temporarily bound to the thread for proper CF selection in connection listeners (e.g. `RabbitAdmin`). This is disallowed if the calling thread is, itself, a listener container thread. Add `push/pop` operations to `SimpleResourceHolder`. **cherry-pick to 2.1.x**
Fixes #1091 The DMLC can open a connection on the calling thread (e.g. `start()`, `setConsumersPerQueue()`). When using a routing connection factory, the factory key is temporarily bound to the thread for proper CF selection in connection listeners (e.g. `RabbitAdmin`). This is disallowed if the calling thread is, itself, a listener container thread. Add `push/pop` operations to `SimpleResourceHolder`. **cherry-pick to 2.1.x**
Affects Version(s): <2.1.6>
Getting "IllegalArgumentException" errors trying to do the following:
Receive an AMQP message that forces me to stop a "SimpleMessageListenerContainer".
Make an AMQP request using the "direct reply-to" mechanism.
Restart the "SimpleMessageListenerContainer"
More details in:
https://stackoverflow.com/questions/57906682/simplemessagelistenercontainer-and-illegalargumentexception
The text was updated successfully, but these errors were encountered: