• Post Reply Bookmark Topic Watch Topic
  • New Topic

code for logs and redirectio  RSS feed

rajiv santhosh
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i'am doing a project in cloud compuitng.actually the topic is 'dynamic resource allocation for parallel processing in cloud'.

i'am using tomcat 6.0.

What I did was that i created a hospital management system using jsp,html,back-end mysql.So administrator can add doctor records,patient records,doctors can update patient records.

i created two instances of tomcat.so when one gets busy it gets connected to next one.it means port 8080 is changed to 8081 only on a button click.

but i need to overload server and automatically redirect to second instance.

but i could write only a redirect javascript timeout that redirects it to second instance after certain time interval.

So what i need to do is that i need a log file that says each access to tomcat and says that it is connected to next instance when first is busy.

can anyone give me a sample code.

Thanks in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!