views:

117

answers:

1

Hi

I am not sure if anyone else encountered this issue,

I have a java app that polls data from an external provider every second, it works fine and polls data as required -this is a console app

I have written a jsp service that does the same, it is basically returning the same data that the console app writes to the console, instead, it is just writing that data to a web page.

The problem now is that the webpage is getting updated every 8.04 seconds, i have checked the tomcat console and it is connecting to the app on the every 8th attempt. is there a way i can solve this polling issue?

It might be a small question but your help would be greatly appreciated.

Many Thanks,

A: 

Could it be caching each request? It would depend on how your Tomcat service is configured or what library you are using to access the Tomcat server. you could try and append a

"?time="+System.currentTimeMillis()

to the end of your URL and see if the behavior has changed.

Jason Sperske