You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ashish Kulkarni <as...@gmail.com> on 2010/02/03 06:28:17 UTC
save session information
Hi
Is it possible with tomcat to save session information in database or some
where which can be retrieved after restart, for example raisin
provides symmetrical
session which can be saved to database or file system
--
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com
Re: save session information
Posted by Martin Grotzke <ma...@javakaffee.de>.
Hi Ashish,
I created a memcached based session failover solution:
http://code.google.com/p/memcached-session-manager/
Basically it stores session information in memcached so that they can be
pulled from memcached if they are not available in the local session
map. For a normal request, the session is read from the local session
map (in-memory).
One advantage over the PersistentManager is, that I also created an xml
based serialization strategy that supports different versions of a class
(e.g. the msm-javolution-serializer, see [1] for more) - this is
especially useful if you deploy a new version of your software and your
serialized classes changed. With the standard java serialization
deserializing session will fail, the xml based approach is able to
handle this.
Other advantages over the database storage target scalability, that was
the main motivation why I created this project.
Cheers,
Martin
On Wed, 2010-02-03 at 00:28 -0500, Ashish Kulkarni wrote:
> Hi
> Is it possible with tomcat to save session information in database or some
> where which can be retrieved after restart, for example raisin
> provides symmetrical
> session which can be saved to database or file system
>
[1] http://code.google.com/p/memcached-session-manager/wiki/SerializationStrategies
--
Martin Grotzke
http://www.javakaffee.de/blog/
RE: save session information
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ashish Kulkarni [mailto:ashish.kulkarni13@gmail.com]
> Subject: Re: save session information
>
> Is there any document which explains how to do so
In a word, yes. Note that Tomcat persists active sessions automatically across restarts by default.
A brief perusal of the Tomcat doc will get you here:
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: save session information
Posted by Ashish Kulkarni <as...@gmail.com>.
Hi
Is there any document which explains how to do so
Ashish
On Wed, Feb 3, 2010 at 1:49 AM, Mark Thomas <ma...@apache.org> wrote:
> On 03/02/2010 05:28, Ashish Kulkarni wrote:
> > Hi
> > Is it possible with tomcat to save session information in database or
> some
> > where which can be retrieved after restart, for example raisin
> > provides symmetrical
> > session which can be saved to database or file system
>
> Hi. Yes.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com
Re: save session information
Posted by Mark Thomas <ma...@apache.org>.
On 03/02/2010 05:28, Ashish Kulkarni wrote:
> Hi
> Is it possible with tomcat to save session information in database or some
> where which can be retrieved after restart, for example raisin
> provides symmetrical
> session which can be saved to database or file system
Hi. Yes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org