If you're using a Snowflake virtual graph and don't want to re-enter credentials every 4 hours to get a new token, you can set the connection pool option maxAge
to some value less than 4 hours. Per the Tomcat docs, maxAge
is "Time in milliseconds to keep a connection before recreating it." 4 hours is 14,400,000 milliseconds, so set maxAge
to a value lower than this for the connection to be recreated before the timeout.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article