session data in distributed env

2010-10-28 Thread Roman Makurin
Hi All!

I put  in the web.xml and made all session
data serializable. Application deployed successfuly but when
when request jumping from one node to another looks like all
data stored in session is lost, i c only default values.

server.xml:



  
  
  


I really dont understand whats happening. Any ideas ?

Thanks

PS: its all about tomcat-5.5

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



session data in distributed env

2010-10-28 Thread Roman Makurin
Hi All!

I put  in the web.xml and made all session
data serializable. Application deployed successfuly but when
when request jumping from one node to another looks like all
data stored in session is lost, i c only default values.

server.xml:



  
  
  


I really dont understand whats happening. Any ideas ?

Thanks

PS: its all about tomcat-5.5

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgpqpcPkyok2Y.pgp
Description: PGP signature


session data in distributed env

2010-10-28 Thread Roman Makurin
Hi All!

I put  in the web.xml and made all session
data serializable. Application deployed successfuly but when
when request jumping from one node to another looks like all
data stored in session is lost, i c only default values.

server.xml:



  
  
  


I really dont understand whats happening. Any ideas ?

Thanks

PS: its all about tomcat-5.5

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgp5VWbmbo6M2.pgp
Description: PGP signature


Re: lock session in distributed environment

2010-10-15 Thread Roman Makurin
On Fri, Oct 15, 2010 at 12:34:10PM +0200, Ronald Klop wrote:
> Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin :
> >
> >
> >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 think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgphAzsQHAife.pgp
Description: PGP signature


lock session in distributed environment

2010-10-15 Thread Roman Makurin
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...


pgpgF2XgLtY1O.pgp
Description: PGP signature


Re: tomcat 5.5, getSession() returns null

2010-09-21 Thread Roman Makurin
Hi! Thanks for reply!

On Mon, Sep 20, 2010 at 11:30:52AM -0400, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Roman,
> 
> On 9/20/2010 3:27 AM, Roman Makurin wrote:
> > We have clustering setup with 2 tomcat 5.5 instances,
> 
> What exact version of Tomcat 5.5? Please post your clustering
> configuration, including relevant information from web.xml.
> Specifically, are you using sticky sessions? Distributable sessions?
> What front-end are you using for clustering? Apache httpd or something else?

We r using tomcat 5.5.27. Here is server.xml from one of nodes(I skip all not
important things from my point of view):









also in web.xml i dont have  tag, only servlet and filters setup
so it looks like sticky sessions r in use, am i right ?
After alot of googling i found some notice about 
tag in web.xml, is there any howto about clustering ?

> 
> > and in some cases(eg when clients browser
> > disable cookies support) behaviour of request.getSession() is
> > really strange. According to api documentation this
> > call should always return session object but
> > it return null. 
> 
> Does this only happen when the client doesn't support cookies?

yeah, this situation comes only when im use my app inside of frame
with disabled cookies.

> 
> What does your code look like that tried to get the session?

i tried use request.getSession() and request.getSession(true) but with
the same result

> 
> > All URLs r encoded for correct session information, but everytime
> > user get other page new session id supplied.
> 
> Can you be more specific? Is the server generating a new session id for
> every request? Please show us how you encode the URLs going back to the
> client.

Yes, u r exectly right. u used response.encodeURL(), so when cookies r off
i saw http://host/webapp/somePage.jsp;jsession=sessionId.
And yes, every page come with new session id.

> 
> > Also this situation reproducable only on clustered setup, with
> > disabled cookies on client side(browser). Everything is ok with
> > single tomcat instance.
> 
> Good to know.
> 
> > any advise ?
> > 
> > PS: its my first post here, so be patient please :)
> > PPS: im not an admin of this clustering setup, so not so
> > much information available.
> 
> You'll need to get that information for us to be helpful.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkyXfiwACgkQ9CaO5/Lv0PCHSgCdG6u5AnBIimGZWFdfZ+sYhQBI
> /JMAn0DD6R7fi34KmmdrUMTILLqk/NNA
> =V6My
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgpNgUNYxdw3k.pgp
Description: PGP signature


tomcat 5.5, getSession() returns null

2010-09-20 Thread Roman Makurin
Hi all!

We have clustering setup with 2 tomcat 5.5 instances,
and in some cases(eg when clients browser
disable cookies support) behaviour of request.getSession() is
really strange. According to api documentation this
call should always return session object but
it return null. 

All URLs r encoded for correct session information, but everytime
user get other page new session id supplied.

Also this situation reproducable only on clustered setup, with
disabled cookies on client side(browser). Everything is ok with
single tomcat instance.

any advise ?

PS: its my first post here, so be patient please :)
PPS: im not an admin of this clustering setup, so not so
much information available.

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgpfaPAfMgNbZ.pgp
Description: PGP signature