• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Load balancing tomcat with apache server

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to create load balancing tomcat with apache server. I have done following things to achieve my goal.
1) I have created primary tomcat and backup tomcat.
2) Both are running simultaneously.
3) If primary is tomcat down then I can able to access my application from the backup tomcat.
4) But the existing application session values and data are not available.

While switching over from primary tomcat to backup tomcat I should maintain the session and data in backup tomcat also.
I tried few ways but that is not useful for me. Please guide me how to do that.

Thanks and Regards,
Suresh Kumar K

[ UD: Removed question unrelated to Tomcat. Please UseOneThreadPerQuestion ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I tried few ways but that is not useful for me.


What exactly did you try, and how didn't it work?

Did you set up the Tomcats as a cluster as described in http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html?
 
K.Suresh Kumar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,
Thanks for your replay. Please check following link which I have tried earlier for tomcat load balancing
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
In this link they mentioned how to replicate session this what i tried but it didn't work. when I am accessing session variable that shows null value.
Also they mentioned we should enable multicasting. Please tell me how to enable multicasting.

Now I tried

http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html

but this is also not work. I can not get my existing application session and data values.

Thanks and Regards,
Suresh Kumar K
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic