users@glassfish.java.net

Re: GLASSFISH CLUSTER AND HTTPSESSIONLISTER

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Sep 2007 13:08:41 PDT

> For example, what if someone wrote in an
> implementation of HttpSessionListener that every time
> a session was created, you were billed $1.00 for a
> usage fee. In a one instance situation, you would be
> correctly billed, i.e. $1.00 per session creation.
> But on a 10 instance cluster, this behavior would
> bill you $10.00 per session creation.
>

Larry:

It's up to the listener to do what it wants to do. Just because
it got a notification on session creation, doesn't mean it will
update something, right?
 
> At the root of this issue is that the Servlet spec
> was not written with clusters in mind. Some
> implementors have interpreted the behavior for
> clusters in one way (Tomcat) and others (Glassfish)
> in a different way. There is no right or wrong here
> - and no one behavior would be "correct" for all
> cases.

I agree. We need an availability section in servlet spec.

- Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=237243