Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

#54 - Fixed issue that prevents creating new queues, exchangers and/or bindings. #63

Merged
merged 1 commit into from
May 19, 2021
Merged

#54 - Fixed issue that prevents creating new queues, exchangers and/or bindings. #63

merged 1 commit into from
May 19, 2021

Conversation

ocristian
Copy link
Collaborator

@ocristian ocristian commented Apr 29, 2021

There was a problem registering the Admins. It was being overwritten as we were using its reference instead of a new instance.
In addition, the bean name was being set after calling afterPropertiesSet, which caused the registered bean to have no name.
Those two problems cause that during the declaration of the queues, exchange or bindings, the registered RabbitAdmin was not identified as DeclarableAdmins.

More info on how RabbitAdmin filter the declarebles here: RabbitAdmin.filterDeclarables(.....) and the admin checks here: declarableByMe(...)

Introducing Github Actions to build, release and publishing artifacts to maven central

Copy link
Contributor

@rwanderc rwanderc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get why the aliases were removed.
Maybe due to the timing (I think I might have pushed it before you branched).

Also, can you pls rebase from master?
The other PR was merged and I guess some things are present there as well.

@rwanderc
Copy link
Contributor

@ocristian I think it's important to keep an eye on #63 (comment)

…gers and/or bindings.

It was being overwritten, as we were using its reference instead of a new instance.
In addition, the bean name was being set after calling afterPropertiesSet, which caused the registered bean to have no name.
Those two problems cause that during the declaration of the queues,exchange or bindings, the registered RabbitAdmin was not identified as DeclarableAdmins.
RabbitAdmin filter the declarebles here: RabbitAdmin.filterDeclarables(.....) and the admin checks here: declarableByMe(...)

Introducing Github Actions to build, release and publishing artifacts to maven central
@ocristian ocristian merged commit 425acf4 into freenowtech:main May 19, 2021
@ocristian ocristian deleted the UP-2823-not-creating-new-queues branch May 19, 2021 17:16
@ocristian ocristian linked an issue May 19, 2021 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

New Queues, Exchanges, Bindings not been created.
5 participants