Re: mod_jk, JSESSION_ID and load-balancing

2013-06-28 Thread Henri Gomez
Thanks for testing Henri. From my point of view it should be good for production and I guess 1.2.38 is not to far away. +1 I'll do some more tests using ab/gatling to see how it works under load. And now you can have your own personal HENRICOOKIE ;) Rhooo :) Thanks Rainer, great works !

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-27 Thread Henri Gomez
Rainer, you rocks ! I'll test it today, more feedback to come :) Thanks 2013/6/26 Rainer Jung rainer.j...@kippdata.de Hi Henri, you can find a dev snapshot at: http://people.apache.org/~rjung/mod_jk-dev/source/jk-1.2.38-dev/ You know those are not releases. The updated documentation

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-27 Thread Henri Gomez
Rainer, I tried mod_jk 1.2.38-dev and it works as expected : An HTTPd in front, 2 Nexus behind, using HENRICOOKIE, requests are sent to proper Tomcat whatever Nexus/Shiro did with JSESSIONID ie : Browser 1 : HENRICOOKIE .swf-nexus JSESSIONID 799c3a8a-fd70-4a08-8a1a-6f301da6a9bc Browser 2 :

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-27 Thread Rainer Jung
On 27.06.2013 17:28, Henri Gomez wrote: Rainer, I tried mod_jk 1.2.38-dev and it works as expected : An HTTPd in front, 2 Nexus behind, using HENRICOOKIE, requests are sent to proper Tomcat whatever Nexus/Shiro did with JSESSIONID ie : Browser 1 : HENRICOOKIE .swf-nexus JSESSIONID

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-26 Thread Rainer Jung
Hi Henri, On 25.06.2013 22:11, Henri Gomez wrote: Hi Christopher I don't have access to code inside application, I'm using stock Sonatype Nexus OSS who use Shiro internally to manage (and regenetate JSESSIONID cookie), loosing jvmRoute contents. See

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-26 Thread Henri Gomez
You can configure the name of the session cookie in TC 6 and 7. I see sessionCookieName in http://tomcat.apache.org/tomcat-7.0-doc/config/context.html ... So if in your case Tomcat would also set a cookie (in addition to the app) we wouldn't need anything else. Just switch TC to MYCOOKIE and

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-26 Thread Rainer Jung
On 26.06.2013 16:54, Henri Gomez wrote: You can configure the name of the session cookie in TC 6 and 7. I see sessionCookieName in http://tomcat.apache.org/tomcat-7.0-doc/config/context.html ... So if in your case Tomcat would also set a cookie (in addition to the app) we wouldn't need

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-26 Thread Henri Gomez
I'll try it as soon as available. Thanks Rainer, Prince of Jk :-) Le 26 juin 2013 à 19:42, Rainer Jung rainer.j...@kippdata.de a écrit : On 26.06.2013 16:54, Henri Gomez wrote: You can configure the name of the session cookie in TC 6 and 7. I see sessionCookieName in

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-26 Thread Rainer Jung
Hi Henri, you can find a dev snapshot at: http://people.apache.org/~rjung/mod_jk-dev/source/jk-1.2.38-dev/ You know those are not releases. The updated documentation is at: http://people.apache.org/~rjung/mod_jk-dev/docs/jk-1.2.38-dev/reference/workers.html look for set_session_cookie. I

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-25 Thread Henri Gomez
Henri, This sounds more like a question for the users list. Cross-posting to re-locate. See more below... I used dev list because question was also about updating mod_jk code. Is is important to retain the original JSESSIONID, or do you only want to retain the jvmRoute information? I would

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-25 Thread Henri Gomez
Hi Rainer. It seems Shiro recommend to extend https://svn.apache.org/viewvc/shiro/trunk/web/src/main/java/org/apache/shiro/web/session/mgt/DefaultWebSessionManager.java From code review (I may be wrong), it seems Nexus is extending

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-25 Thread Christopher Schultz
Henri, On 6/25/13 2:33 AM, Henri Gomez wrote: Henri, This sounds more like a question for the users list. Cross-posting to re-locate. See more below... I used dev list because question was also about updating mod_jk code. Is is important to retain the original JSESSIONID, or do you

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-25 Thread Henri Gomez
Hi Christopher I don't have access to code inside application, I'm using stock Sonatype Nexus OSS who use Shiro internally to manage (and regenetate JSESSIONID cookie), loosing jvmRoute contents. See https://issues.sonatype.org/browse/NEXUS-5756 We could told mod_jk to use another cookie but I

mod_jk, JSESSION_ID and load-balancing

2013-06-24 Thread Henri Gomez
Hi to all, I'm faced a weird problem with a web application who didn't keep JSESSIONID generated by Apache Tomcat (via jvmRoute). This application is using ASF Shiro who in turn regenerate its own JSESSIONID (and replace one from Tomcat). It completly broke mod_jk/ajp load-balancing and sticky

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Henri, This sounds more like a question for the users list. Cross-posting to re-locate. See more below... On 6/24/13 11:09 AM, Henri Gomez wrote: Hi to all, I'm faced a weird problem with a web application who didn't keep JSESSIONID generated

Re: mod_jk, JSESSION_ID and load-balancing

2013-06-24 Thread Rainer Jung
Hello Henri, On 24.06.2013 17:09, Henri Gomez wrote: I'm faced a weird problem with a web application who didn't keep JSESSIONID generated by Apache Tomcat (via jvmRoute). This application is using ASF Shiro who in turn regenerate its own JSESSIONID (and replace one from Tomcat). It