users@glassfish.java.net

Cluster doesn't replicate session

From: gsong <GChen2_at_statestreet.com>
Date: Tue, 28 Jul 2009 20:06:26 -0700 (PDT)

I have been reading alot on how to set up glassfish cluter and I think I have
did everything suggested on the instructions, but I'm still can't get thte
cluster session replication working.
I have two server and created one instance on each server. I create a
cluster and deployed the clusterjsp.ear which get from the
"$glassfish\samples\quickstart\clusterjsp' on the cluster, and it's seems
that the session replication never working but it worked when i deploy the
two instance both on one mache.

test page of instance_gf1_1:
===================
Cluster - HA JSP Sample
HttpSession Information:
Served From Server: 10.248.98.97
Server Port Number: 8081
Executed From Server: CN-PC-HZ2095
Served From Server instance: instance_gf1_1
Executed Server IP Address: 10.248.66.107
Session ID: 46b356b3efb160833d8eac67358a
Session Created: Wed Jul 29 10:51:16 CST 2009
Last Accessed: Wed Jul 29 10:51:16 CST 2009
Session will go inactive in 1800 seconds

--------------------------------------------------------------------------------

Data retrieved from the HttpSession:
gf1_1key = gf1_1value

test page of instance_gf1_4:
=============================================
Cluster - HA JSP Sample
HttpSession Information:
Served From Server: 10.248.98.97
Server Port Number: 8081
Executed From Server: CN-PC-HZ2248
Served From Server instance: instance_gf1_4
Executed Server IP Address: 10.248.66.48
Session ID: 466af566ca715019afc3ec30a812
Session Created: Wed Jul 29 10:46:19 CST 2009
Last Accessed: Wed Jul 29 10:46:19 CST 2009
Session will go inactive in 1800 seconds

--------------------------------------------------------------------------------
Data retrieved from the HttpSession:
gf1_4key = gf1_4value

after stop the insance_gf1_4: noticed that the sessionid is difference from
previously
====================================
HttpSession Information:
Served From Server: 10.248.98.97
Server Port Number: 8081
Executed From Server: CN-PC-HZ2095
Served From Server instance: instance_gf1_1
Executed Server IP Address: 10.248.66.107
Session ID: 4741c0b1946e71c27fd585d80225
Session Created: Wed Jul 29 11:00:59 CST 2009
Last Accessed: Wed Jul 29 11:00:59 CST 2009
Session will go inactive in 1800 seconds

ps:
1.All servers in the same subnet
2.avaliable enabled for the application;
attached are logs of the two instance.
This problem have troubled me for several days, appreciate for anyone gives
suggesions!
http://www.nabble.com/file/p24711649/instance_gf1_1-server.log
instance_gf1_1-server.log
http://www.nabble.com/file/p24711649/instance_gf1_4-server.log
instance_gf1_4-server.log
-- 
View this message in context: http://www.nabble.com/Cluster-doesn%27t-replicate-session-tp24711649p24711649.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.