When the network IP address changes, TIBCO BusinessWorks application doesn't seem to be refreshing the DNS cache automatically. How do we refresh the DNS Cache for BW application automatically?
book
Article ID: KB0090458
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Description: ============ When the network IP address changes, we want the BW application to refresh the DNS Cache automatically. How do we do this?
Environment: ===========
All BW version
Resolution: ========== BW does not cache the IP address while using the hostname in the Database Connection. However, JVM itself caches the IP address. You can change the following JVM security property in the JVM security file (%JRE_HOME%/lib/security/java.security), networkaddress.cache.ttl=0
Definitions of the related properties: -------------------------------------- networkaddress.cache.ttl (default: -1)
Specified in java.security to indicate the caching policy for successful name lookups from the name service.. The value is specified as an integer to indicate the number of seconds to cache the successful lookup. A value of -1 indicates "cache forever". Any positive value indicates the number of seconds to cache an address for. A value of 0 indicates "never cache".
networkaddress.cache.negative.ttl (default: 10)
Specified in java.security to indicate the caching policy for un-successful name lookups from the name service. The value is specified as an integer to indicate the number of seconds to cache the failure for unsuccessful look-ups.
A value of 0 indicates "never cache". A value of -1 indicates "cache forever".
Based on your requirement, set one or both the properties. Note that you need to restart the Designer/BW application after you change the java.security file. Double check the Java home in your tra file and make sure you change the right java.security file in the right JRE.
For now, adding the Java property in the application TRA file or passing it via Java code does not work. A defect has been filed: ( BW-9504 :java security property does not work when configured in tra file). The defect has not been addressed. Until then you need to propagate the cache property via java.security file.
Issue/Introduction
When the network IP address changes, TIBCO BusinessWorks application doesn't seem to be refreshing the DNS cache automatically. How do we refresh the DNS Cache for BW application automatically?