Re: Working on mod_jk

2006-08-17 Thread Rainer Jung
If your platform uses multiple processes for Apache, then traditional in memory data will not be shared. You'll need to use shared memory for that. Have a look at Jean-Cleres hints in the same thread about the slotmem implementation he was doing a couple of weeks ago in the httpd project. Regards,

Re: Working on mod_jk

2006-08-17 Thread Rodrigo Ramele
Tomcat gurus: I am working with apr table in mod_jk to store the session table but i can't achieve to share the table between differents requests... Someone could give me a tip ? (or a good reference to a site or book related with apache 2 module programming) Thanks a lot !!! On 8/14/06, Raine

Re: Working on mod_jk

2006-08-14 Thread Rainer Jung
Klaus Wagner wrote: On Mon, 2006-08-14 at 16:24 +0200, Rainer Jung wrote: Klaus Wagner wrote: ... If you really, really want to do this, for the watchdog you can enhance the existing maintain methods. There is already a mechanism that calls the maintain methods during a request only if the la

Re: Working on mod_jk

2006-08-14 Thread Klaus Wagner
On Mon, 2006-08-14 at 16:24 +0200, Rainer Jung wrote: > Klaus Wagner wrote: > ... > > 4. the tricky part: have a) a watchdog that clears invalid sessions in > > idle time or b) clear sessions before looking for them (causes some > > performance issues) > > > > If you really, really want to do thi

Re: Working on mod_jk

2006-08-14 Thread Rainer Jung
Klaus Wagner wrote: ... 4. the tricky part: have a) a watchdog that clears invalid sessions in idle time or b) clear sessions before looking for them (causes some performance issues) If you really, really want to do this, for the watchdog you can enhance the existing maintain methods. There i

Re: Working on mod_jk

2006-08-14 Thread Klaus Wagner
On Fri, 2006-08-11 at 09:51 +0200, Jean-frederic Clere wrote: > Rodrigo Ramele wrote: > > > Hello Jean, ! > > Thanks for answeringI didn't explain myself very well. I meant: I > > need > > to keep track each one of the JSESSIONID and the worker where the > > 'Set-Cookie' header comes from,

Re: Working on mod_jk

2006-08-11 Thread Rodrigo Ramele
Rainer, Jean, thank you both of you ! mod_jk already uses shared memory, but since it should >work for apache 1.3 and 2.0/2.2 it does not use apr. If your extensions are >only meant for 2.0/2.2, then have a look at apr: http://apr.apache.org/docs/apr/modules.html I think I only meant it for

Re: Working on mod_jk

2006-08-11 Thread Jean-frederic Clere
Rodrigo Ramele wrote: Hello Jean, ! Thanks for answeringI didn't explain myself very well. I meant: I need to keep track each one of the JSESSIONID and the worker where the 'Set-Cookie' header comes from, so when a new Request with this cookie arrives again (from the browser) i would pr

Re: Working on mod_jk

2006-08-11 Thread Rainer Jung
mod_jk already uses shared memory, but since it should work for apache 1.3 and 2.0/2.2 it does not use apr. If your extensions are only meant for 2.0/2.2, then have a look at apr: http://apr.apache.org/docs/apr/modules.html I'm not sure, that I understand your use case. Isn't Enhydra able to incl

Re: Working on mod_jk

2006-08-10 Thread Rodrigo Ramele
Hello Jean, ! Thanks for answeringI didn't explain myself very well. I meant: I need to keep track each one of the JSESSIONID and the worker where the 'Set-Cookie' header comes from, so when a new Request with this cookie arrives again (from the browser) i would properly redirect it to the

Re: Working on mod_jk

2006-08-10 Thread Jean-frederic Clere
Rodrigo Ramele wrote: Hello Tomcat dev: Suse 9.2, Apache 2.2.3, mod_jk 1.2.15 I am changing the way mod_jk transfer request to different workers (tomcat instances) in a balanced worker keeping track of the link between session and worker, and I need to use some kind of shared memory inside m

Working on mod_jk

2006-08-10 Thread Rodrigo Ramele
Hello Tomcat dev: Suse 9.2, Apache 2.2.3, mod_jk 1.2.15 I am changing the way mod_jk transfer request to different workers (tomcat instances) in a balanced worker keeping track of the link between session and worker, and I need to use some kind of shared memory inside mod_jk. (I need to share a