Hi "Raul"

One approach for this as already mentioned is using a db. However a db is
far from providing an elegant solution to this complex problem.
For example you would need to know in advance where the db is located. You
would need to integrate with its specific jdbc driver you would need to map
your session object into relational model, you would also need to know SQL
and the list goes on.

JavaSpaces which is part of the JINI services can provide a much more
elegant approach to this issue.

JavaSpaces uses a very simple and native api and is more native to java
programmer you can use a simple write/read/take methods to write java
objects.
The space takes care on storing the entry in a persistent backend which may
be a relational db , object db or even in memory depending on the space
attributes.
Using the JINI lookup service you can allocate the appropriate space on
demand without pre-configuration or installation.
I would defiantly recommend the use of this technology for this cases.

If you have any farther questions please let me know.





-----Original Message-----
From: Raul Valenberg [mailto:[EMAIL PROTECTED]]
Sent: Sun 15 April 2001 23:36
To: [EMAIL PROTECTED]
Subject: saving session attributes across server machines

Hi,

We are designing a Web application with Servlets and JSPs that has to run on
several machines in a fail-over mode. Each machine also has to participate
in
the workload as longs it is up. Furthermore, our requirements state that if
a
user session begins at one server, the fail-over to another server would be
transparent to the client.

I am looking for the right combination of technologies for this case.
Does anyone have any experience with these kind of requirements using
Tomcat?

I though about using SUN JavaSpaces technology as a backbone for the Tomcat
servers.
Does this sounds logical? Has anybody have any experience with this type of
combination?

Thanks.

Raul.

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Reply via email to