I didn't write the jbossha-httpsession stuff (Sacha/Bill did). So I 
cannot be sure that this is implemented, but I would be very surprised 
if not.

If you bounce a node, it should rejoin it's group and then sync it's 
entire state from another member of that group.

3.0.1 also contains a CMPStore, which does not suffer from this problem. 
It requires the CMPState Bean to be deployed 
(docs/examples/jbossweb/jbossweb-ejb.jar).

An example interceptor stack is given in 
docs/examples/jbossweb/jetty-web.xml.

If you point all nodes at the same DB and remove the <remove-table> tags 
from jbossweb-ejb.jar's jbosscmp-jdbc.xml, you should have no trouble 
retaining state, even if you take the whole cluster down.

The EJB approach is not as fast as the JavaGroups one (or scalable) - so 
I can understand your wanting the JG stuff. I will look at the 
jbossha-httpsession as soon as I have time.

I am also about to checkin a new release of Jetty and a new, 
fine-grained JG implementation which definitely DOES refresh state in 
bounced nodes, and distributes CHANGES to sessions, rather than the 
WHOLE session each time (so should be faster). When this is in, I shall 
release a new jbossweb.sar at Jetty SourceForge and ping you.


Jules



Greg Turner wrote:
> Shouldn't this work?
> 
> I am running JBoss 3.0.1final, all configuration
> 
> I have jbossha-httpsession.sar in deploy directory.
> 
> My jetty-web.xml has EXTENDED Clustering turned on.
> 
> I startup 2 instances of JBoss; there are memebershipChanged messages
> from ReplicantManager
> 
> I deploy a war on one instance with a servlet that gets an Integer from
> session, display it, adds 1, puts it back into session
> 
> Browsing the servlet works fine.
> 
> When I take the instance with the war down, shouldn't the session info
> be replcated to the other instance so that when I bring it back up, it
> gets Integer from session?   The servlet gets null from session and
> starts count over.
> 
> Greg
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to