This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes code for logs and redirectio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "code for logs and redirectio" Watch "code for logs and redirectio" New topic
Author

code for logs and redirectio

rajiv santhosh
Greenhorn

Joined: May 07, 2012
Posts: 1
hi,

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: code for logs and redirectio
 
Similar Threads
Out of Java heap space
testing jpa - OneToMany
Doubt in Servlet threading
form field population done right
Use of generic classes