I have a datasource configuration file where I have contextwith resource(s)
like this
<Context>
<Resource
name="jdbc/pds"
auth="Container"
driverClassName="oracle.jdbc.driver.OracleDriver"
factory="myPackage.EncryptedDataSourceFactory"
logAbandoned="true"
maxTotal="30"
maxIdle="10"
maxWaitMillis="1000"
password="encryptedPassword"
removeAbandoned="true"
removeAbandonedTimeout="60"
type="javax.sql.DataSource"
url="jdbc:oracle:thin:@myFirstIP:port:MYDB"
username="username"
accessToUnderlyingConnectionAllowed="true"
validationQuery="select 1 from dual" />
</Context>
- ip myFirstIP, validationQuery - , , , ip mySecondIP, , mySecondIP ip ( JAVA ), myFirstIP , mySecondIP. , , myFirstIP, mySecondIP? ? , ?
oracle 11.2.0.2.0, java8 tomcat 8.5 / wildfly 9