EE Session Failover: Invalid session key
Just wondering if anybody else has seen the error "Invalid session key" when failover in an EE cluster takes place.
I've got an EE app running on a 2-pair cluster, behind Apache with mod_loadbalancer. The app has been enabled for high availability in both the console, and in all the descriptor files. (It's a SFSB with a servlet).
When testing failover, I run the app successfully on the first server, and note it's JROUTE. I then shutdown this server, and attempt to hit the app again, as it should failover to the second server.
When failover occurs, the JROUTE cookie changes - which indicates that the loadbalancer has detected the dead server and has re-routed the request to the second server.
Trouble is, the second server is unable to process the request.
I see the error "No persisted data found for session (+session id)".
and next:
"javax.ejb.NoSuchLocalException: Invalid session key"
It seems to suggest to me that the second server cannot retrieve the EJB from the HADB as it thinks it has an invalid session.
It seems to me like the app isn't storing the EJB data in the HADB, however, the HADB store appears to be working as I've tested the sample app, clusterjsp, and it seems to store the HTTP session information in the HADB fine as failover works.
Is there something in my application I might be missing which is preventing data from being stored in the HADB. Any ideas would be appreciated.
For what its worth, its a Appserver 8.1EE UR2 patch 9 cluster.

