Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Dynamically modify SQS queue to an @SqsListener method at runtime ? #789

Open
naveen-rd opened this issue Sep 23, 2021 · 0 comments
Open
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@naveen-rd
Copy link

    @SqsListener(value = "foo", deletionPolicy = SqsMessageDeletionPolicy.ON_SUCCESS)
    public void fooMethod(final String message)  {
        processEvents(message);
    }

I am using SqsListener which at the app startup loads foo queue just fine. But while the app is up and running processing events from the queue, if I want to change the queue to a different queue, say foo-test, does spring-cloud support it ?

Background: I am trying to run a test queue part of my deployment and the deployment would start with the test queue. Once messages from the test queue are processed and test is successful, I want to dynamically change the queue to the production queue.

Please advise on how to achieve this. If there are alternative approaches, let me know. Thanks!

@github-actions github-actions bot added the status: waiting-for-triage An issue we've not yet triaged label Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: waiting-for-triage An issue we've not yet triaged
Development

No branches or pull requests

1 participant