layout | title | product | doctype | nav | disqus |
---|---|---|---|---|---|
page |
Proxy Server Settings |
avaTax |
use_cases |
apis |
1 |
- https://development.avalara.net for development, and
- https://avatax.avalara.net for production
- networkaddress.cache.ttl This property indicates the caching policy for successful name lookups from the domain name service. The value is specified as an integer to indicate the number of seconds to cache the successful lookup. The default value of this property is -1, which means the successful DNS lookup value will be cached forever. If the value is set to 0, it means it will not cache successful DNS lookups up at all. Any other positive value indicates that successful DNS lookups will be cached for that many seconds. This value must be set to 60.
- networkaddress.cache.negative.ttl This property indicates the caching policy for unsuccessful name lookups from the domain name service. The value is specified as an integer to indicate the number of seconds to cache the unsuccessful lookup. The default value of this property is 10, which means that unsuccessful DNS lookup values will be cached for 10 seconds. If the value is set to 0, it means that it will not cache successful DNS lookups up at all. Any other positive value indicates that unsuccessful DNS lookups will be cached for that many seconds. This value must be set to 60 as well.
- Edit the $JAVA_HOME/jre/lib/security/java.security by changing the value of the networkaddress cache properties in the file.
- The advantage of this solution is that it is a non-programmatic solution.
- The disadvantage is that since JVMs are global resources, used by multiple applications, the setting may not work well in applications that have consumed the adapter classes.
- Use java.security.Security.setProperty(“propertyname”, “value”) to programmatically set the property.
- The advantage is that other applications using the same JVM are not affected.
- The disadvantage of this solution is that it is a programmatic solution.