Question
Intel
IN
Last activity: 19 Nov 2018 14:37 EST
Can we add retry feature in connection string
Below are the connection string the context.xml file :
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://abcd.com:3181;databaseName=**********;SelectMethod=cursor;SendStringParametersAsUnicode=false"
username="*********" password="*********"
maxTotal="100"
maxIdle="30"
maxWaitMillis="10000"
/>
Does maxWaitMillis mean connection wait time in ms which is 10seconds?
However I wish to know is there an retry attempt attributes with an interval option (after 10 secons)?
OR can we add any configuration to add the retry attempt after 10 seconds, if in case it fails?