users@glassfish.java.net

Re: High Availability Session Persistence does not work.

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 00:07:30 PDT

Thanks for the answer.
Software: glassfish-installer-v2-b58c.jar
My steps to setup a cluster environment (step by step):

host3:
cd /usr/local/
java -Xmx256m -jar /root/glassfish-installer-v2-b58c.jar
cd /usr/local/glassfish
sh ./lib/ant/bin/ant -f setup-cluster.xml
bin/asadmin delete-domain domain1
sudo -u japps bin/asadmin create-domain --domaindir /var/japps --adminport 4848 mmm
sudo -u japps /usr/local/glassfish/bin/asadmin create-node-agent --host host3.td.mmm.lv --port 4848 --user admin --agentdir /var/japps/nodeagents host3node
sudo -u japps /usr/local/glassfish/bin/asadmin start-node-agent --user admin --agentdir /var/japps/nodeagents host3node


host1:
cd /usr/local/
java -Xmx256m -jar /root/glassfish-installer-v2-b58c.jar
cd /usr/local/glassfish
sh ./lib/ant/bin/ant -f setup-cluster.xml
bin/asadmin delete-domain domain1
sudo -u japps bin/asadmin create-domain --domaindir /var/japps --adminport 4848 mmm
sudo -u japps /usr/local/glassfish/bin/asadmin create-node-agent --host host3.td.mmm.lv --port 4848 --user admin --agentdir /var/japps/nodeagents host1node
sudo -u japps /usr/local/glassfish/bin/asadmin start-node-agent --user admin --agentdir /var/japps/nodeagents host1node

After that, I have started domain on host3, where I create new cluster (with it's own configuration file) with 2 instances on host3 and host1.
heartbeat-enabled is enabled (I've checked it one more time, before writing this answer), when I deployed app, I've enabled "availability". I even look through the web.xml to be sure, that there is a tag <distributable>

So, I can deploy application through my cluster, it works on host3 and host1, but I do not see any symptoms of HASP. Testing application loose all http-data, when Alteon redirect session on the other node...
[Message sent by forum member 'constantinius' (constantinius)]

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