-
Notifications
You must be signed in to change notification settings - Fork 3k
Use ApplicationScoped for Artemis ServerLocator and ConnectionFactory #5941
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
Conversation
Maybe add a |
Yes, that is a good addition. I have added that. Also we have in our custom extension to set up some JMS a problem with the ordering so I added a ArtemisConfiguredBuildItem that can be used for ordering. It is a common pattern in other extensions, only there it is done via a SimpleBuildItem with a RuntimeValue of the produced item. Using a SimpleBuildItem is not feasible because we have two methods producing the same item, which is not allowed. I only plan to use it for ordering and get the bean from the BeanContainer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks good, thanks. |
@middagj btw, have you tried your |
No, but I can check of course. |
Yes, better check it works OK. |
So is this good to go? |
OK thanks! I removed the |
Sorry, it took me sometime to force a wrong initial order as it comes always ordered on my mac (only seems to happen on Linux in the CI/CD pipeline). It does not work when producing the jar (it does work in testing), I get a:
I changed the implementation to use separate SimpleBuildItems. |
Thanks for checking. |
If no scope is used on a Produces method, it defaults to Dependent, which is probably not the best for the ConnectionFactory and ServerLocator.