This time i have problem in maxwait. To test the maxwait i tried to
establish the connection and close.
My dbserver is located outside my system, so for dbconnection network is
required as per our Production server model.

So first i established the connection first from the jsp page, it gets done.
After that i plugged-out my network cable and tried to make connection by
that same jsp file, but i didnt get exception , it keep on running. but if i
refreshed the page again after few mins the exception is coming. but why not
in first request itself.  I need it in first request itself for my failover
model. my maxwait is 1000ms

 <Resource auth="Container" description="Database DSN" name="jdbc/dbname"
scope="Shareable" type="javax.sql.DataSource" url="jdbc:postgresql://
1.1.1.180/dbname" driverClassName="org.postgresql.Driver" username="xxxx"
password="yyyyy" maxActive="10" maxIdle="1" minIdle="0"
removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
maxWait="1000" />

Is it bug or my mistake ?

-Arvind S




*
"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison*

Reply via email to