cancel
Showing results for 
Search instead for 
Did you mean: 

AS Java Server ip address caching

Former Member
0 Kudos

Greetings, we are in the process of moving several external interfaces (webmethods systems) that our AS Java instance uses to send data to our backend ERP system. The move involves changing the ip address of the server that webmethods is hosted on, however keeping the hostname the same. In our past efforts, one of the issues we seem to run into all of the time, is that the AS Java instance caches that ip address and fails to refresh the lookup in a timely manner. Typically to solve this problem, we must restart to allow the AS Java instance to correctly pickup the new ip address of the hostname. Has anyone experienced this same type of issue or have any thoughts on how to overcome the problem?

Accepted Solutions (1)

Accepted Solutions (1)

former_member432219
Active Participant
0 Kudos

Hi, the caching is done by the JVM itself not by the J2EE Server so it cannot be changed at runtime, a restart of the VM is required.

See the documentation on InetAddress Caching here http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html

Answers (1)

Answers (1)

Former Member
0 Kudos

Great reference, thank you for the reply and answer!