-
Notifications
You must be signed in to change notification settings - Fork 109
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
@PreDestroy not called all the times on view scoped using CDI #4646
Comments
Looking the issue it seems that it is related to this commit: The reason is that now the context views can be joined (method I have done a tentative fix in my branch against 2.3. Check: But the problem is that a public method signature should be changed (to pass the viewMapId to the managers). Both classes are from the implementation, but I'm not sure if you want something like this. But I really don't see an easy solution to pass the fixed index that maps the view map with the context map. Please check and comment if you like the solution or if you see something better for this. Thanks a lot! |
@arjantijms Please, can you take a look? |
Hi, did you have the chance of checking the branch? Good or bad idea? Thanks a lot! |
Hi, Sorry for bothering you again but we need to know how to continue with this issue. Thinking about the problem I see only two solutions to get a fixed key for the ACTIVE_VIEW_CONTEXTS map (one key that is replicated OK in a cluster env):
Don't know, I don't see any other possibility. Can you please check this? Do you see any other solution? Which one of the previous two do you prefer? I will work in the solution you prefer or a new one if you see something better. |
Hi, We have sent a PR: #4655 Finally we decided to be cautious and maintain the API compatibility. Please, as I commented in the PR, take a look when you have time because we have a customer pushing for a solution in our side. If you find any problem or improvement just request changes in the PR. Thanks in advance! |
Signed-off-by: arjantijms <arjan.tijms@gmail.com>
#4646 Merge in properly after initial merge
@arjantijms I have back-ported the fix for 2.3 and 3.0 branch. At least we are interested in including this in the current 2.3 branch (plain cherry-pick was done and test working). Nevertheless I have also sent the same for 3.0 just in case, although I see that tests are not there for the moment (here minor modifications were needed).
Thanks a lot for working on this! |
Excellent.
Not a problem at all as long done on impl side! |
Hi!
In the last version 2.3.14 a CDI bean annotated with
@PreDestroy
is not called all the times that are needed if there are more views in the active_views (refresh).
To reproduce the issue:
mvn package
of the attached maven project in a server with the last version of mojarra 2.3.14.Best regards!
bean.zip
The text was updated successfully, but these errors were encountered: