users@glassfish.java.net

Session Management in Glassfish Cluster

From: Evaristo José Camarero <evaristojosec_at_yahoo.es>
Date: Fri, 19 Oct 2007 10:48:29 +0200 (CEST)

Hi all:

I am migrating a clustered application from Tomcat
5.5.x to Glassfish v2, using HttpSession in memory
replication.

The application must be able to work with devices not
supporting cookies (e.g. some mobile devices), and
even further that URL re-writing capabilities (get
sessions by IP address, assuming that each mobile
device has only a concurrent session).

In Tomcat, I have employed the HttpSessionListeners to
build a table indexed by the IP address of the device
to get the HttpSession. In a Tomcat clustered
environment, this is working because HttpSessions are
replicated to all the cluster nodes, and the listeners
are called in all the cluster members.

Glassfish follows a different alternative, and
therefore I can not build this table, and I can not
follow the same approach with Glassfish.

So, is there any possible alternative for doing
something similar with Glassfish (e.g. using Shoal to
get the right session, or using HADB)?

Thanks in advance,

Evaristo




       
____________________________________________________________________________________
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html