-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jon,
On 2/15/2010 12:55 PM, Jon Brisbin wrote: > I'm using the built-in Tribes-based replication which works fine for > short periods of time and under moderate to light load. Once the > Tomcat server has been running for a day or two, though, this > distributed session replication starts breaking unexpectedly. Once > this happens, the apps start becoming unavailable until I restart > everything. That's unfortunate. You should post a complaint that you are observing this behavior. AFAIK, the Tomcat devs are quite satisfied with their replication implementation. Get ready to defend your use of session objects, though :) > I'm trying to figure out today how I can implement a Valve or > something that can store a session to a backend DB and reload that > session on another Tomcat instance similar to how the > PersistentManager loads user's session after a restart. > > Would a Valve based on PersistentValve allow me to implement a > cluster-like solution such that a user login causes a write to a > central database and a load balanced request to another server would > see that user without forcing another login? I would think that simply using the existing PersistenceManager + JDBCStore would work. In tact, it's even documented to be one of the ways of achieving session clustering without doing in-memory replication: http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html Unfortunately, I didn't see any specifics on how to configure Tomcat to do just that, though I must admit I didn't spend very much time looking. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkt5khwACgkQ9CaO5/Lv0PCydwCdE/ZjGWYg91P+anDZIFYhilSz QVUAniRKuLV/TSUphnlBhEdKIKDGC2TM =+FuL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org