The context you mentioned would be just the single context of one application which the all vhosts1-3 refer to. I don't need to share session betweeb different application contexts though. So if I understand correctly I just need to match my vhosts on the apache httpd with the tomcat vhosts? Or do they still not "share" the same tomcat http session on this single application?
Jens
Nikola Milutinovic wrote:
Jens Saade wrote:
Hi,
I already sent an email named "jk2 + apache vhosts + tomcat sessions" but no response yet. Maybe I didn't describe my problem clearly enough so here is another go:
I've got an apache http 1.3.x running in front with multiple vhosts. Some of those vhosts are redirected to a single tomcat 5 instance via jk2 connector. I use these vhosts as "entry points" to the application running inside the tomcat server. They should share tomcats http session. Atm each vhost opens a new session for e.g. vhost 1-3. Is it possible to make them somehow share the same tomcat http session? Or is there a better way to achieve what I want?
apache http with | +---------+----------+-----------+---------+ vhost1 vhost2 vhost3 vhost4 vhost5 | | | | | jk2 jk2 jk2 php simple html | | | single .. tomcat .. instance with application
All those Tomcat web-apps (contexts) should/must be on matching VHosts (see <Host ...> tag for server.xml). There is no way to share a session between different contexts, unless you wish to implement something external.
Nix.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
PIRONET NDH AG
Jens Saade - Application Developer - Business Center Industry
Maarweg 149-161, 50825 Cologne - Germany
Phone: +49 (0)221-770-1794 - Fax: +49 (0)221-770 1005
Mail to: [EMAIL PROTECTED] - http://www.pironet-ndh.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
