Are there any Tomcat configuration parameters that would stop Tomcat from caching DNS values? We are trying to implement a environment where JSP pages are hosted on a Windows 2003 server running Tomcat 5.0. The JSP makes SOAP/RPC web services calls to retrieve information from back-end systems. The URL in the web service goes through a BigIP sprayer which distributes the request to an available resource. After the first call, the DNS is getting cached somewhere and subsequent calls are being directed to the same resource.
We have already modified the MaxCacheTtl registry on the Windows 2003 server to only hold the DNS for 1 second. Also the time-to-live for the DNS on the BigIP sprayer is 10 seconds. The distribution has been successful when a making the requests from other applications (Internet explorer and LoadRunner), but we've had to luck with Tomcat hosted JSPs.