Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 2/24/2010 2:21 AM, Tsirkin Evgeny wrote: On Tue, Feb 23, 2010 at 11:50 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- What's flow-resuming is ?How a request can be resumed ?Doesn't

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Simone Tripodi
Hi Evgeny, thanks a lot for shared your experience, very interesting. I'd like to plug something magic that could avoid me configuring a filter, I started investigating about a possible use of AOP HttpSession. If anyone is interested, I'll share my results when done. Best regards!!! Simo

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Jon Brisbin
On Feb 23, 2010, at 7:31 AM, Simone Tripodi wrote: Hi Evgeny, thanks a lot for shared your experience, very interesting. I'd like to plug something magic that could avoid me configuring a filter, I started investigating about a possible use of AOP HttpSession. If anyone is interested, I'll

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 2/23/2010 1:51 AM, Tsirkin Evgeny wrote: What we did - override session object using filter.On each request start it would read it's info from db (any configured one ,but preferring the local one) On each request end it would write

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Tsirkin Evgeny
On Tue, Feb 23, 2010 at 8:08 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 2/23/2010 1:51 AM, Tsirkin Evgeny wrote: What we did - override session object using filter.On each request start it would read it's

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 2/23/2010 1:49 PM, Tsirkin Evgeny wrote: On Tue, Feb 23, 2010 at 8:08 PM, Christopher Schultz ch...@christopherschultz.net wrote: I guess tomcat authentication is broken for me - tomcat is probably writing something in session _

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Tsirkin Evgeny
On Tue, Feb 23, 2010 at 11:50 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- What's flow-resuming is ?How a request can be resumed ?Doesn't this goes againt the idea of http is staitless ,that's vrey interesting? So,the flow-resuming you

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-22 Thread Tsirkin Evgeny
Just in case somebody will google for a solution for replacing session. I have done this . First of all ,why: We have cluster of 2 machines . Each have a separate db on it . The machines are sharing information using nfs mounting fs. Each machine runs it's own apache server ,(no apache balancer in

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-16 Thread Martin Grotzke
Hi Jon, On Mon, 2010-02-15 at 11:55 -0600, Jon Brisbin wrote: I'm trying to figure out today how I can implement a Valve or something that can store a session to a backend DB and reload that session on another Tomcat instance similar to how the PersistentManager loads user's session after a

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-16 Thread Simone Tripodi
Hi Martin, very interesting, thanks for share it!!! I did, more or less, the same on a project for a customer, but it was strictly related to the application, your stuff looks much much better of mine and it is a reusable module. All the best, Simo http://people.apache.org/~simonetripodi/ On

Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Simone Tripodi
Hi all guys and very nice to meet the Tomcat community, I've a web-application that needs to be replicated in more than one Tomcat, and since it is HttpSession based, I need to enable the session replication. Even if I work with very good sysadmins that know how to do it, I'm curious and would

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Simone, On 2/15/2010 12:05 PM, Simone Tripodi wrote: I've a web-application that needs to be replicated in more than one Tomcat, and since it is HttpSession based, I need to enable the session replication. Even if I work with very good sysadmins

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Jon Brisbin
I'm just getting ready to ask a question like this, as I have a similar need. I'm using the built-in Tribes-based replication which works fine for short periods of time and under moderate to light load. Once the Tomcat server has been running for a day or two, though, this distributed session

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon, On 2/15/2010 12:55 PM, Jon Brisbin wrote: I'm using the built-in Tribes-based replication which works fine for short periods of time and under moderate to light load. Once the Tomcat server has been running for a day or two, though, this

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Simone Tripodi
Hi Cris, thanks for your reply and nice to meet you :) There's no specific reason why I don't want to use the built-in session replication, even if I'd be able to realize what I've in my mind, the sysadmins will never let me know to use it since they're confident with the Tomcat solution. BTW, I'm