Sounds like a VERY cool idea!

What kind of database structure do you use? I know that ColdFusion
and PHP both have the capability to store their session info in a database,
do you know what schema they use? If your code can use the same
schema as PHP or ColdFusion, then one could conceivably use
an existing database already set up for CF or PHP.

As far as where to start, I guess I'd look at the SessionInterceptor
class. I'm pretty new to tomcat as well, so I can't help you out
more than that.

Great idea.
-Mike Jennings

----- Original Message -----
From: "Topher LaFata" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 4:45 PM
Subject: distributed session management


>
> Hi everybody. I hope this is the appropriate forum for this question.
> Currently I am doing distributed session management with a hacked up
> jserv that can persist serialized sessions in the DB if they are deemed
> "dirty".
> The session id encodes information regarding, among other things, which
> machine
> in the cluster the session is currently bound to. Thus it is easy to
detect
> a failed-over
> session and suck it back in from the DB.
>
> I am attempting to get out of jserv land and port the application over to
> tomcat.
> I looked at the source and it seems like that if i wanted to implement the
> current
> solution on tomcat that i would have to end up hacking tomcat which is not
> what i want
> to do. It seems that StandardSessionInterceptor, StandardManager,
> SessionIdGenerator and
> Session would have to be reimplemented to support what I would like to do.
I
> don't have
> a problem doing this but I don't want to end up with a divergent tomcat
code
> base (which
> is exactly what happend with jserv).  I am new to tomcat so hopefully I am
> missing something.
> Could anyone provide some suggestions on the a course of action which
would
> keep me
> on the normal tomcat dev path? It would be much appreciated.
>
> thanks a lot.
> topher

Reply via email to