Skip to content
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

WIP: quarkus: starts but beanManager is not accessible, something is missing #625

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

osoykan
Copy link
Collaborator

@osoykan osoykan commented Nov 5, 2024

This PR contains a spike for quarkus and for the people who want to contribute for the issue #71, implementation is much appreciated!

@osoykan osoykan mentioned this pull request Nov 5, 2024
ApplicationLifecycleManager.setAlreadyStartedCallback(started ->
startupComplete.complete(true)
);
Thread quarkusThread = new Thread(() -> {
Copy link
Collaborator Author

@osoykan osoykan Nov 5, 2024

Choose a reason for hiding this comment

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

Quarkus blocks test thread that's why we put it behind another thread.

Thread.sleep(1000);
}

return Arc.container().beanManager();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Then a strange issue appears, even though application is started by the test context, we still get a null beanManager 🤔

@osoykan osoykan force-pushed the main branch 2 times, most recently from 3dacf24 to df528d0 Compare November 27, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant