tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ronald-mailingl...@base.nl>
Subject Re: lock session in distributed environment
Date Fri, 15 Oct 2010 11:37:50 GMT
Op vrijdag, 15 oktober 2010 13:00 schreef Roman Makurin <drolyk@gmail.com>:
> 
>  
> 
> On Fri, Oct 15, 2010 at 12:34:10PM +0200, Ronald Klop wrote:
> > Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin <drolyk@gmail.com>:
> > >
> > >
> > >Hi All!
> > >
> > >I have an app which rely on session locking and its key
> > >point here. Everything work on single tomcat instance,
> > >but its completly broken in distributed env. So i want to
> > >know is there any way to get my app working without
> > >complete redesing? I need lock all incoming requests untill
> > >business logic will be done, this lock must be
> > >available on all nodes in cluster.
> > >
> > >any advise?
> > >
> > >Thanks
> > >
> > >-- 
> > >If you think of MS-DOS as mono, and Windows as stereo,
> > > then Linux is Dolby Digital and all the music is free...
> > >
> > >
> > >
> > >
> > >
> > >
> > 
> > 
> > This is something a database can do very well. There are also things like a distributed
HashMap which you might use to do locking in your setup.  But that probably is what you see
as complete redesign (and it is :-) ).
> > 
> > Ronald.
> 
> Looks like HashMap is like distributed HttpSession object,
> but does it support locking? Eg. I lock session at first
> node and all other nodes r aware of this lock. 
>  
> 
> 
> 
> 
> 
> 

If you are locking with synchronized or something like that than it doesn't work between different
JVM's.

Ronald.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message