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 35916] New: - Session listeners not called on cluster server restart
Date Thu, 28 Jul 2005 14:24:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35916>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35916

           Summary: Session listeners not called on cluster server restart
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina:Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hander3@terra.com


Hi,

I think there is a bug at DeltaManager class. I have set up 2 local tomcat 
servers. My application implements HttpSessionListener, 
HttpSessionAttributeListener and HttpSessionActivationListener. All the methods 
of those interfaces are called when needed, so no problems yet.
When I shutdown one of the servers, sessionDestroyed is called (only on the 
server being shutdown) for each session. However, when I start that server 
again and it receives the active sessions from the other server, neither 
sessionCreated nor sessionDidActivate methods are called for each active 
session received from the other server. I think one of them should be called on 
the server being started up.
Here is my cluster configuration, just in case it helps:

-------------------

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
         managerClassName="org.apache.catalina.cluster.session.DeltaManager"
         expireSessionsOnShutdown="false"
         useDirtyFlag="true"
         notifyListenersOnReplication="true" 
         notifySessionListenersOnReplication="true">

    <Membership 
        className="org.apache.catalina.cluster.mcast.McastService"
        mcastAddr="228.0.0.4"
        mcastBindAddr="127.0.0.1"
        mcastPort="14000"
        mcastFrequency="500"
        mcastDropTime="3000"/>

    <Receiver 
        className="org.apache.catalina.cluster.tcp.ReplicationListener"
        tcpListenAddress="127.0.0.1"
        tcpListenPort="15001"
        tcpSelectorTimeout="100"
        tcpThreadCount="6"/>

    <Sender
        className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
        replicationMode="pooled"
        ackTimeout="15000"/>

    <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
           
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>

</Cluster>

-------------------

Thank you very much!

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

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


Mime
View raw message