tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45238] New: Error replicating sessions with Struts 2 framework java application.
Date Thu, 19 Jun 2008 15:44:56 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45238

           Summary: Error replicating sessions with Struts 2 framework java
                    application.
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rdrumba@gmail.com


Hi,

we are having a problem when balancing Tomcat session among to clusters.
Architecture is the following: Apache (A) balancing 50-50 over Tomcat (1) and
Tomcat (2).

We are working on a big application and we saw that the session is not
replicated properly because we are doing one request for each Tomcat
sequentially (see 50-50 balancing) and we have checked that a simple counter
that we created inside the session object (our own object) accesing using
session.getAttribute("name") the resulted pattern is:

Request 1 in T1, counter = 1
Request 2 in T2, counter = 2
Request 3 in T1, counter = 2
Request 4 in T2, counter = 3
Request 5 in T1, counter = 3
Request 6 in T2, counter = 4
Request 7 in T1, counter = 4
Request 8 in T2, counter = 5
...

so, the value of the counter is not replicated properly or we are accesing it
in a wrong way. Is interesting for us that the Session ID (session.getID())
shows the same ID in both Tomcats so, we guess the is the same but replication
of attributes values seems to be not replicated.

Could you please help us?

Than you in advance.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message