You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christian Traber <ch...@traber-net.de> on 2003/08/10 10:40:54 UTC

mod_jk2 and stickySession

Hi!

I've configured jk2 with a loadbalancer and stickySession=1 and made
a simple Testservlet with a getSession().

I can see the JSESSION cookie in my browser but the loadbalancer
still uses all workers and not only the worker with my session.

What is going wrong?

Regards,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 and stickySession

Posted by Christian Traber <ch...@traber-net.de>.
NormW wrote:

>Good evening Christian.
>Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka
>route) for each JK worker?
>Norm
>  
>

Thanks,

I set jvmRoute in server.xml Engine section and now it works.

Best regards,
Christian


reloading context configuration file

Posted by John Holman <j....@qmul.ac.uk>.
Using tomcat 4.1.18, I can deploy an application by copying a context 
configuration file (CCF) to the webapps directory. I can also make 
changes to the WAR file referenced in the CCF, and Tomcat will notice 
provided I stop the application first using Tomcat manager and start if 
afterwards.

However I cannot find a way to have Tomcat see changes in the CCF 
itself, short of stopping and restarting the container. It seems that 
once the application is autodeployed the container caches the contents 
of the CCF. Removing the CCF or changing its contents appears to have no 
effect.

I would have expected that when the application is stopped and then 
started the CCF should be re-read to pick up any changes. Is there a way 
to make this happen?

(By the way I know about the ant deploy task but am exploring alternatives).

Thanks, John.



Re: mod_jk2 and stickySession

Posted by Christian Traber <ch...@traber-net.de>.
NormW wrote:

>Good evening Christian.
>Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka
>route) for each JK worker?
>Norm
>  
>

Thanks,

I set jvmRoute in server.xml Engine section and now it works.

Best regards,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


reloading context configuration file

Posted by John Holman <j....@qmul.ac.uk>.
Using tomcat 4.1.18, I can deploy an application by copying a context 
configuration file (CCF) to the webapps directory. I can also make 
changes to the WAR file referenced in the CCF, and Tomcat will notice 
provided I stop the application first using Tomcat manager and start if 
afterwards.

However I cannot find a way to have Tomcat see changes in the CCF 
itself, short of stopping and restarting the container. It seems that 
once the application is autodeployed the container caches the contents 
of the CCF. Removing the CCF or changing its contents appears to have no 
effect.

I would have expected that when the application is stopped and then 
started the CCF should be re-read to pick up any changes. Is there a way 
to make this happen?

(By the way I know about the ant deploy task but am exploring alternatives).

Thanks, John.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 and stickySession

Posted by NormW <no...@bocnet.com.au>.
Good evening Christian.
Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka
route) for each JK worker?
Norm

----- Original Message ----- 
From: "Christian Traber" <ch...@traber-net.de>
To: <to...@jakarta.apache.org>
Sent: Sunday, August 10, 2003 6:40 PM
Subject: mod_jk2 and stickySession


> Hi!
>
> I've configured jk2 with a loadbalancer and stickySession=1 and made
> a simple Testservlet with a getSession().
>
> I can see the JSESSION cookie in my browser but the loadbalancer
> still uses all workers and not only the worker with my session.
>
> What is going wrong?
>
> Regards,
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


Re: mod_jk2 and stickySession

Posted by NormW <no...@bocnet.com.au>.
Good evening Christian.
Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka
route) for each JK worker?
Norm

----- Original Message ----- 
From: "Christian Traber" <ch...@traber-net.de>
To: <to...@jakarta.apache.org>
Sent: Sunday, August 10, 2003 6:40 PM
Subject: mod_jk2 and stickySession


> Hi!
>
> I've configured jk2 with a loadbalancer and stickySession=1 and made
> a simple Testservlet with a getSession().
>
> I can see the JSESSION cookie in my browser but the loadbalancer
> still uses all workers and not only the worker with my session.
>
> What is going wrong?
>
> Regards,
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org