[jboss-jira] [JBoss JIRA] (WFLY-11854) Distributable session manager cannot detect immutable external classes

Paul Ferraro (Jira) issues at jboss.org
Tue Apr 16 14:39:00 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-11854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated WFLY-11854:
--------------------------------
    Description: 
Currently, WildFly's distributed web session manager detects classes annotated with @Immutable placed into the web session, optimizes calls so HttpSession.getAttribute(...) are not treated as cache writes.

However, users don't always have access to the classes to be able to annotate them, e.g. they come from a web framework, etc.

Now that we have a distributed session management deployment descriptor, we have a convenient location to define external session attribute classes that should be treated as immutable.

  was:
Currently, WildFly's distributed web session manager detects classes annotated with @Immutable placed into the web session, optimizes calls so HttpSession.getAttribute(...) are not treated as cache writes.

However, users don't always have access to the classes to be able to annotate them, e.g. they come from a web framework, etc.

The proposal is to add a public SPI that users can implement that provides a web application with a set of classes that should be treated as immutable with respect to the distributed web session manager.



> Distributable session manager cannot detect immutable external classes
> ----------------------------------------------------------------------
>
>                 Key: WFLY-11854
>                 URL: https://issues.jboss.org/browse/WFLY-11854
>             Project: WildFly
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 16.0.0.Final
>            Reporter: Paul Ferraro
>            Assignee: Paul Ferraro
>            Priority: Major
>
> Currently, WildFly's distributed web session manager detects classes annotated with @Immutable placed into the web session, optimizes calls so HttpSession.getAttribute(...) are not treated as cache writes.
> However, users don't always have access to the classes to be able to annotate them, e.g. they come from a web framework, etc.
> Now that we have a distributed session management deployment descriptor, we have a convenient location to define external session attribute classes that should be treated as immutable.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list