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

Make sure request scope is propagated to newly created threads in FT #2229

Merged
merged 4 commits into from
Aug 3, 2020

Conversation

spericas
Copy link
Member

@spericas spericas commented Aug 3, 2020

After discussing the solution with @jansupol, I believe this is currently the simplest way to support this. We do need to create a dummy CDI bean with an injection point for Jersey to make its RequestScope type available via CDI. Using that and some other CDI classes, we ensure all injections (@Context or @Inject ones) are available in newly created threads.

One of the functional tests has been updated to verify this fix.

…ds. Requires access to Jersey internals in order to fully support @context and @Inject injections.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas added fault-tolerance jax-rs JAX-RS and Jersey related issues cdi CDI labels Aug 3, 2020
@spericas spericas self-assigned this Aug 3, 2020
ljnelson
ljnelson previously approved these changes Aug 3, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas
Copy link
Member Author

spericas commented Aug 3, 2020

/trigger

@spericas spericas merged commit 8d79e66 into helidon-io:master Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cdi CDI fault-tolerance jax-rs JAX-RS and Jersey related issues
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants