Following code is successful in refreshing a page every second without flicker (long live AJAX). However, it makes the browser and JBoss server freeze after a while. Any idea/suggestion on the way AJAX call is implemented?
One thing is you are hammering your website with requests. Once a second can cause a heavy load on the box with a lot of people are going to use it. Another thing is eventually the browser eats up memory since it has a bad Garbage Collection.