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

[WFLY-3424] Correctly implement the ArtifactFactory to work better with CDI #10297

Merged
merged 1 commit into from Jul 20, 2017

Conversation

jamezp
Copy link
Member

@jamezp jamezp commented Jul 10, 2017

[WFLY-8942] Setup the correct context for @requestScope beans.

This contains two fixes in one commit. It didn't make sense to split the commits as they touch the same files. One would have deleted a file, the other would have added it back.

WFLY-3432

This converts the previously named WildFlyArtifactFactory to an MSC service and uses the correct call to the CreationalContext to clean up the CDI bean rather than JBeret itself attempting to invoke the @PostConstruct.

Due note while the upgrade for JBeret (https://issues.jboss.org/browse/WFLY-9051) isn't required for this change to exist, it will be required for this change to actually work properly.

WFLY-8942

Activates and deactivates the @RequestScope context. Typically the request scope is a thread-local. However since batch jobs are ran in new thread(s) the context needs to be activated for all threads.

@jamezp jamezp force-pushed the WFLY-8942 branch 2 times, most recently from b90bd3e to 9cb0e72 Compare July 11, 2017 18:37
@jamezp jamezp added the hold PR should not be merged for some reason. label Jul 12, 2017
@jamezp
Copy link
Member Author

jamezp commented Jul 12, 2017

I'm placing a hold on this for now as I don't think it's correct quite yet. I'm working with the CDI team to ensure we're handling injections correctly.

@codylerum
Copy link
Contributor

Is the hope still to have this make WFLY 11?

…th CDI.

[WFLY-8942] Setup the correct context for @requestScope beans.
@jamezp
Copy link
Member Author

jamezp commented Jul 17, 2017

@codylerum Yes, This should be included in WildFly 11.

@jamezp jamezp removed the hold PR should not be merged for some reason. label Jul 17, 2017
@kabir kabir merged commit 568ff6e into wildfly:master Jul 20, 2017
@jamezp jamezp deleted the WFLY-8942 branch July 20, 2017 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants