aspose file tools*
The moose likes Web Services and the fly likes JVM DNS Caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JVM DNS Caching" Watch "JVM DNS Caching" New topic
Author

JVM DNS Caching

Ganesh Dhakshinamurthy
Greenhorn

Joined: Apr 08, 2007
Posts: 11
In my application, I use webservices deployed in another server for which I have a direct access i.e. a specific firewall rule has been implemented to allow direct connections.
I look up the webservices using the domain name of the server i.e. not using specific IP address of the hosted server.
IP address of the server got changed some 15 days ago, but my application was working fine till I did a restart last weekend. After the restart, my application is unable to access the webservices which is understandable.

My question is even after the IP change, my application was able to connect to the webservices server till I restarted my application. Can anyone please explain me how is this possible?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
I look up the webservices using the domain name of the server i.e. not using specific IP address of the hosted server.
IP address of the server got changed some 15 days ago, but my application was working fine till I did a restart last weekend. After the restart, my application is unable to access the webservices which is understandable.


If you look up the web services using the domain name, why do you think a change to the IP address of the server will have any effect on your look up?

If the domain name did not change, a change to the IP address will not effect looking up the web service by domain name.
Ganesh Dhakshinamurthy
Greenhorn

Joined: Apr 08, 2007
Posts: 11
I access the webservices not through internet, its a firewall rule within the intranet which allows the connection between these two servers.
Now for my application to work, a new firewall rule has to be implemented allowing access between these two servers.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
I look up the webservices using the domain name of the server


Your statement above states "domain name." Whether this is to the Internet or an Intranet, this does not make a difference.

If you have a DNS server implemented in your Intranet, then changing the IP address should not effect anything, if you indeed look up the services with the domain name.

If you do not have a DNS server implemented in your Intranet, then your statement above does not make any sense.
[ November 12, 2008: Message edited by: James Clark ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JVM DNS Caching