just as an input i was never able to use sticky sessions with jetty either. it worked fine on mod_jk.
Surajit Bhattacharjee wrote:
Hi group!
I am using mod_jk2 (mod_jk2-2.0.43.so) with Apache 2.0.43 and trying to load-balance HTTP traffic on to embedded Tomcat (4.1.x) in JBOSS 3.2.0. The load gets balaced round robin, but I am not able to get sticky sessions set up.
I have put in the jvmRoute attribute in the service XML file of embedded Tomcat (as shown below). Also I have set the tomcatId attribute for the channels in workers2.properties to the corresponding jvmRoute values.
Below are my confguration details. Will really appreciate if someone can help me with this!!!
PLEASE NOTE: This is all on SOLARIS OS. -----------
Best Regards, Surajit
workers2.properties: ------------------- # Define the communication channel
[channel.socket:192.168.1.152:8009] info=Ajp13 forwarding over socket lbfactor=1 tomcatId=192.168.1.152:8009
[channel.socket:192.168.1.83:8009] info=Ajp13 forwarding over socket lbfactor=1 tomcatId=192.168.1.83:8009
# Map the Tomcat examples webapp to the Web server uri space [uri:/*] info=Map the whole webapp
[shm] file=${serverRoot}/logs/shm.file size=1048576
Part of jboss-service.xml file for embedded Tomcat service on one of the hosts: ---------------------------------------------------------------------------- -- <Engine name="MainEngine" defaultHost="localhost" jvmRoute="192.168.1.83:8009"> <Logger className = "org.jboss.web.catalina.Log4jLogger" verbosityLevel = "debug" category = "org.jboss.web.localhost.Engine"/> <Host name="localhost"> <!-- Access logger --> <Valve className = "org.apache.catalina.valves.AccessLogValve" prefix = "localhost_access" suffix = ".log" pattern = "common" directory = "${jboss.server.home.dir}/log" /> <!-- Default context parameters --> <DefaultContext cookies = "true" crossContext = "true" override = "true" /> </Host> </Engine>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user