users@glassfish.java.net

Re: Enable Session Memory Replication

From: Peter Fabian <Peter.Fabian_at_Sun.COM>
Date: Fri, 08 Feb 2008 22:38:11 +0100

Asleson, Ryan wrote:
>
> Hello,
>
> I have successfully created a clustered Glassfish development
> environment using the instructions found here:
>
> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>
> I have 3 computers: One running the Sun web server with the load
> balancer plugin, one computer running a server instance, and one
> computer running a server instance and that also acts as the DAS.
>
> I created an application that stores data in session. I can use the
> application and see that both instances in the cluster are being used.
>
> I start some work on instance1. Then, I shut down instance1. Next, I
> return to the application and go to the next page. I can see that
> instance2 is being used (which is correct, since instance1 was shut
> down) however none of the session data appears.
>
> After deploying the application to the cluster, I check the
> "Availability" check box in the admin console and save. This is
> supposed to enable in-memory session replication, right?
>
The web-app element of the web.xml deployment descriptor file must
contain the distributable element.
http://docs.sun.com/app/docs/doc/819-3679/abdkz?a=view



-- 
Peter Fabian
Sun Software
AIM/skype:fabianpetergabor
Sun corp IM:pf120168_at_sun.com