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

Sharing CDI beans containing properties through the session cache does not work. #194

Open
ryahiaoui opened this issue Mar 11, 2024 · 0 comments

Comments

@ryahiaoui
Copy link

ryahiaoui commented Mar 11, 2024

The observed behavior with CDI session beans is unusual: after modifying a property of the bean, then calling session.getAttributeNames() within the same method, the shared session cache is not updated. However, if session.getAttributeNames() is not called, everything works correctly and the cache is updated.

  @SessionScoped
  @Named ("test")
  public class RoleManagementJspBean 
  {
      private String test = "init";
      
      public String process( HttpServletRequest request )
      {
         test= request.getParameter("test");
         HttpSession session = request.getSession( true );
         session.getAttributeNames();
       }
  }

Do you have any hypotheses about what could be causing this behavior?

@ryahiaoui ryahiaoui closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
@ryahiaoui ryahiaoui reopened this Mar 15, 2024
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

No branches or pull requests

1 participant