F
francan
I am using JNDI Database Connection Pool in Tomcat 6.0.20 to connect
to Oracle RAC:
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbcracle:thinmyserver:1521:mysid"
username="joness" password="mypasswrd" maxActive="20" maxIdle="10"
maxWait="-1"/>
It works great except after Tomcat container is restarted. The first
time I view a page after the restart, the web page with JNDI DB
connection pool comes back with message:
"Cannot create PoolableConnectionFactory(IO exception: The network
adaptor could not establish the connection".
The next time I view the page and all other times it works great.
Please advise.
to Oracle RAC:
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbcracle:thinmyserver:1521:mysid"
username="joness" password="mypasswrd" maxActive="20" maxIdle="10"
maxWait="-1"/>
It works great except after Tomcat container is restarted. The first
time I view a page after the restart, the web page with JNDI DB
connection pool comes back with message:
"Cannot create PoolableConnectionFactory(IO exception: The network
adaptor could not establish the connection".
The next time I view the page and all other times it works great.
Please advise.