2 Replies Latest reply on Sep 3, 2004 10:18 AM by saleti

    connection timeout in -ds.xml

    saleti

      Can you please let me know if i can set my database connection timeout in -ds.xml
      I would like to wait for the response from the database for n millisecs and if i don't get a response in n millisecs, ignore the response from database.

        • 1. Re: connection timeout in -ds.xml

          Only if the jdbc driver or XA datasource accepts them as configuration properties.

          • 2. Re: connection timeout in -ds.xml
            saleti

            Our -ds.xml is


            <local-tx-datasource>
            <jndi-name>DefaultDS</jndi-name>
            <connection-url>jdbc:oracle:oci8:@xxxx</connection-url>
            <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
            <user-name>xxxx</user-name>
            xxxxx
            </local-tx-datasource>


            And we have j2sdk 1.4.1 on the servers and Oracle 9 database.
            Does Oracle Driver accepts connection timeout as a configuration property if yes what is it in the -ds.xml?