Andrew Hole wrote:
It happens on both. Valueunbound is executed on old server when tomcat
is stopped, and is executed on new server when I execute logout (or if
I shutdown tomcat). We only want that new server executes
valueunbound.
if Tomcat is stopped, then it will call all the listeners properly. the only way to not have this happen, would be to "kill -9" your tomcat, so you don't get the proper shutdown sequence

Filip
Could you help?

Thanks a lot
A

On 2/25/08, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew,

Andrew Hole wrote:
| Well, our class USER implements HttpSessionBindingListener,
| Serializable and when failover happens valueUnbound is executed(public
| void valueUnbound(HttpSessionBindingEvent event)) -> valueUnbound is a
| method of class USER.

Is this happening on the "new" server or the "old" server?

Maybe your application is replacing the USER in the session with another
copy or something like that.

You can always generate a stack trace to find out where the call is
coming from:

System.err.println("User saw valueUnbound event!");
new Throwable().printStackTrace();

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfC6VsACgkQ9CaO5/Lv0PDwjgCghiPQXcAA9AGGSKkeJ5WuzoRQ
HYkAn1SjgLifqMpxKyZmZ1+GWp74PTTY
=hNUj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to