You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Prasenjit Purohit (JIRA)" <de...@myfaces.apache.org> on 2013/09/20 10:36:57 UTC

[jira] [Comment Edited] (MYFACES-3772) SessionScoped beans are not synchronizing between tomcat 6 cluster

    [ https://issues.apache.org/jira/browse/MYFACES-3772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772859#comment-13772859 ] 

Prasenjit Purohit edited comment on MYFACES-3772 at 9/20/13 8:35 AM:
---------------------------------------------------------------------

Hi, I am getting the similar effect with OWB too i followed procedure described at [http://tandraschko.blogspot.de/2013/09/enable-failover-with-openwebbeans-120.html]. Now i am getting a sense that i am making something wrong.

Edit
Direct mapping like #{sessionScope.userName} is working but properly with MyFaces beans
but #{bean1.userName} is not working when bean1 is an serializable session bean
                
      was (Author: prasenjitpurohit):
    Hi, I am getting the similar effect with OWB too i followed procedure described at [http://tandraschko.blogspot.de/2013/09/enable-failover-with-openwebbeans-120.html]. Now i am getting a sense that i am making something wrong.
                  
> SessionScoped beans are not synchronizing between tomcat 6 cluster
> ------------------------------------------------------------------
>
>                 Key: MYFACES-3772
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3772
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.1.12
>         Environment: Tomcat6 + JDK7 + Win7 + Apache httpd load balancer (without sticky session)
>            Reporter: Prasenjit Purohit
>            Assignee: Leonardo Uribe
>
> I am using myfaces in our project. We use some session scoped beans. Let me explain the error reproduction steps with two Tomcat6 nodes and Apache httpd load balancer (without sticky session). web.xml has <distributable/> element. Other session variables are synchronizing well.
> 1. Start node 1
> 2. Set some value in the property of a session bean
> 3. Value is available for get on node 1
> 4. Start node 2 same value is available on node 2
> 5. Set new value on the property of node 1
> 6. New value is available on node 1
> 7. Node 2 still contains the old value
> 8. Restart node 2
> 9. Node 2 now contains new value
> 10. Set new value on node 2
> 11. New value available on node 2 but not on node 1
> 12. Restart node 2
> 13. Node 2 has the old value taken from Node 1
> No exception is raised during the process. Session bean implements Serializable interface.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira