Some more info...
I spent some more time in debugging the issue and narrowed down to spring layer is problematic...
the WebApplicationContext is getting regenerated on session failover. when the active node goes down the second node is replicated with all the httpsession data but. when I observe the sping log statements... it says, WebAPplicationContext is closed (on first node) and on second node it is getting regenerated.
However, when I print the underlying session data from WebApplicationContext... everything is fine i.e., all the session data (from node1) is replicated on node2.
I'm totally confused.
I went thru multiple forums and everywhere I see these kind of problems are addressed thru Terracota..
Did anybody try spring + dwr application clustering on JBoss??
Any pointers would be highly appreciated.
Please ignore this...
I was wrong with my analysis. seems spring + dwr layer is not problematic.
Anyway, I still have the problem unresolved... will post the details, once I get the fail-over working fine.