I'm using JBOSS 4.0.4 and Oracle 10.1. I have tried to set the setTransactionTimeout using context. When the timeout expires I only receive a WARN message and I cann't cancel del conection with Oracle. My data-source:
<xa-datasource> <jndi-name>XAOracleDS</jndi-name> <track-connection-by-tx/> <isSameRM-override-value>false</isSameRM-override-value> <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class> <xa-datasource-property name="URL"> ... </xa-datasource-property> <xa-datasource-property name="User">...</xa-datasource-property> <xa-datasource-property name="Password">....</xa-datasource-property> <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool --> <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name--> <!-- Checks the Oracle error codes and messages for fatal errors --> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name> <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa --> <no-tx-separate-pools/> <set-tx-query-timeout>true</set-tx-query-timeout> <track-connection-by-tx>true</track-connection-by-tx> <query-timeout>60</query-timeout> <blocking-timeout-millis>5000</blocking-timeout-millis> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> <type-mapping>Oracle9i</type-mapping> </xa-datasource> How could I throw a exception when timeout is fired? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984447#3984447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984447 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user